Get filepath of linked object
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.
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
