Copy link to clipboard
Copied
To create an "Adobe InDesign Package Report" manually, it is done via "File > Package > Report…" and generates a document summary similar to what is produced in packaging, but with more data.
I am struggling with creating this text doc via scripting. This is part of a multi-app process, so I'd prefer AppleScript, but I am having no luck in the dictionary. Neither package nor save report seem to produce the same document as the manual process. Does anyone have any hints for me on how to achieve this without resorting to System Events? Thanks in advance.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Neither package nor save report seem to produce the same document as the manual process.
By @WCBaxter
What do you mean by that?
Copy link to clipboard
Copied
Yes, both are different.
The script has functionality for the package and doesn't have for "save report".
Copy link to clipboard
Copied
There doesn’t seem to be a way to get at File>Package>Report...
Seems like the best you can do via JS is Package just the info:
var f = Folder.selectDialog("Select the folder", "");
var doc = app.activeDocument;
doc.packageForPrint (f,false,false,false,false,false,true,true);
File(f + "/" + doc.name).remove()
The OP was looking for AppleScript, so if you are on a Mac it should be possible to invoke the menu item with AS and use System Events to tab to the Report... button