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;
myFilePath = myObj.filePath;
myFilePath = myObj.itemLink.assetURL;
then somebody suggested (also not working)
myFilePath = myObj.itemLink.filePath;
Thank you very much for your help!
what exactly is selected in your tests?
The container frame holding the image or the image itself?
If you selected the graphic frame holding the image you'll get the path this way: