Answered
What if the rectangle frame is empty?
Hi all,
When there's an image in a graphic frame (a linked file), you can find out the file name, path, etc. But how do you check if that frame is empty?
The following script brings up the Link found message when there's a linked file in the frame, but doesn't bring up the Not found message if there isn't. It brings up an "object is invalid" error.
Any ideas?
if (app.selection[0].graphics[0].itemLink.filePath != null) {
alert("Link found");
}
else {
alert("Not found");
}
