3 Replies Latest reply on Aug 23, 2017 10:46 AM by Laubender

    Get filepath of linked object

    oystersauces Level 1

      How can I get the file path from the selected object in Adobe Indesign? (InDesign CS5 (7.0) Object Model)

      I need the Path property from the Link Info in a string variable so I can open the linked file for editing.

      ind_file_path.PNG

       

      I tried some things, none of them worked:

           var myObj = app.selection[0];
           myFilePath
      = myObj.filePath;
      or
           myFilePath
      = myObj.itemLink.assetURL;

      then somebody suggested (also not working)

                myFilePath = myObj.itemLink.filePath;

       

      Thank you very much for your help!

       

      Kind regards,

      Stefan