Copy link to clipboard
Copied
I'm wondering if there's a way within InDesign desktop or if there's a InDesign desktop scripting function to automatically zip a InDesign package.
I'm familiar with the process to create an InDesign package within InDesign desktop (File->Package, create instructions.txt, copy fonts, copy linked graphics, etc.), but it just places the resultant files in a folder. I've only tried InDesign desktop 2017 (12.1.0.56), so I wanted to ask if any version of InDesign desktop can automatically zip the package folder.
Use app.packageUCF(sourceFolder, destZipFile)
@+
Marc
Copy link to clipboard
Copied
Use app.packageUCF(sourceFolder, destZipFile)
@+
Marc
Copy link to clipboard
Copied
Good afternoon.
Can you please describe in a little more detail how to do this?
Copy link to clipboard
Copied
This is an api call you can use in your jsx. For example if you have a folder with path
/Users/user/abc
You can use the following code to zip it
app.packageUCF("/Users/user/abc", "/Users/user/out.zip")
-Manan
Copy link to clipboard
Copied
Maybe you can help me. I have a script that saves the IDML, INX and font folder to a separate folder when exporting, as well as the crooked PDF file separately. How can I make the target folder (test folder) immediately be saved as an archive?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
*INDD, not INX, of course
Copy link to clipboard
Copied
As I mentioned add the code to your script giving it the path to the test folder and the path to the zip
If you still face issues please open a new discussion as this is a very old thread so better to start afresh
-Manan
Copy link to clipboard
Copied
We don't have anything that does this automatically, so you can fire the export from scripting using the
doc.packageForPrint
and then as mentioned by Marc use the packageUCF api to zip the folder in which you created the package
-Manan
Copy link to clipboard
Copied
Hi joshuas64972510 ,
also see into this if you are using method packageForPrint():
Re: packageForPrint --- problem when packaging all open documents - ADOBE please read
Regards,
Uwe