1 person found this helpful
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?
indeed XMP string contain the information, but parsing the file then linking to the right object...
I'll probably try to work with linked file on a server drive !
What are you trying to do with the file do you need it?
I don't need the linked file, I juste want its name to export informations into a XML file.
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