Skip to main content
Lingotek
Inspiring
February 8, 2019
Answered

Is it possible to automatically zip a InDesign package?

  • February 8, 2019
  • 3 replies
  • 2006 views

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.

This topic has been closed for replies.
Correct answer Marc Autret

Use app.packageUCF(sourceFolder, destZipFile)

@+

Marc

3 replies

Community Expert
February 9, 2019

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

Community Expert
February 9, 2019

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

-Manan
Marc Autret
Marc AutretCorrect answer
Legend
February 8, 2019

Use app.packageUCF(sourceFolder, destZipFile)

@+

Marc

Participating Frequently
June 14, 2024

Good afternoon.
Can you please describe in a little more detail how to do this?

Community Expert
June 14, 2024

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

-Manan