I want to get the "file.displayName" property of a RasterItem from a file where links are broken.
the script :
myItem = app.activeDocument.selection; 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 ?
AI is storing the data that is visible in the GUI in the file's XMP ( may be else where in file too ). Script only has access to the linked file if it exists… For embedded rasters where the original is no longer available parse the XMP string?
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 )…
#target illustrator var doc = app.activeDocument; $.writeln( doc.groupItems.length ); // Returns 1 $.writeln( doc.rasterItems.parent.name ); // Returns full name
Europe, Middle East and Africa