Copy link to clipboard
Copied
In Javascript, how can all photo images contained in an Illustator .AI file--regardless of whether they are on an Artboard or scattered around the Canvas--be programmatically selected and included in a JS variable suitable for iterating over the entire collection?
Many thanks in advance!
Plane Wryter
Copy link to clipboard
Copied
Try the following, it will alert the filepath of each placeditem in the currently active AI file
var pi = app.documents[0].placedItems
for(var i = 0; i < pi.length; i++)
{
alert(pi[i].file)
}
-Manan
Copy link to clipboard
Copied
Dear Manan,
Many, many thanks for your helpful reply to my request.
With thanks!
Plane Wryter