Hi,
I want to get the "file.displayName" property of a RasterItem from a file where links are broken.
the script :
myItem = app.activeDocument.selection[0];
myItem.file.displayName;
works fine if the RasterItem source file is where the link points at.
In my case, the link points to the local drive of another computer, so the "file" property of the RasterItem doesn't exists !!!
I don't understand why, because all the informations are in the Links pannel of illustrator.
Can anyone help me with that ?
Thanks ![]()
Once I embed an image in my file and chuck the link away… AI says I have a group a named raster ( no file extension ) But the parent frame is named ( with ext )…
So…
#target illustrator
var doc = app.activeDocument;
$.writeln( doc.groupItems.length ); // Returns 1
$.writeln( doc.rasterItems[0].parent.name ); // Returns full name
North America
Europe, Middle East and Africa
Asia Pacific