Script to dump out all the art file document's layer, path, group, asset info?
Say we have an AI document that has layers that may or may not contain:
- groups
- compound paths
- paths
- text boxes
- photos & other artwork assets
- pageItems
- pathItems
Have to account for nested mixes of item types things within groups, compound path, etc.
Has anyone written a data dumper script to dump such things out? Say for example I just want to generically see what are all the items inside the layers of the document. Telling me it's name, positions, type, etc.
As for dumping, alert() calls are ok. Or if we used something like debrouwere/Extendables · GitHub can use the logger to log to file, or just use ExtendScript toolkit's $.writeln() call to the console.
I'm working on this, specific to my organizations needs but it's taking me some time. If someone already has such a script written, or can easily write one up that would be nice, saving me time & hassle figuring out how to do this as there's so many object types that I have to iterate through. And worse, seems some types are undefined (or null) so I have to check for that before iterating or it gets stuck in (or fail) script execution.
I'm working with javascript/ExtendScript. Not sure if it's any easier in VBScript or AppleScript.