Question
Cannot create link from the given URI based on the folder Path
Hi,
I have used the script to get the image link's path. For a month it's working fine in the InDesign previous versions but by using the latest version of InDesign I can't able to retrieve the image path. I have attached the script which I used to retrieve the image path
var doc = app.activeDocument;
// Loop through all the links in the document
var link = doc.links[0];
// Get the file path of the linked image
var filePath = link.filePath;
// Create a File object from the file path
var file = new File(filePath);
// Get the folder path of the file
folderPath = file.parent.fsName;
