• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is it possible to automatically zip a InDesign package?

Explorer ,
Feb 08, 2019 Feb 08, 2019

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.

TOPICS
Scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Feb 08, 2019 Feb 08, 2019

Use app.packageUCF(sourceFolder, destZipFile)

@+

Marc

Votes

Translate

Translate
Guide ,
Feb 08, 2019 Feb 08, 2019

Copy link to clipboard

Copied

Use app.packageUCF(sourceFolder, destZipFile)

@+

Marc

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 13, 2024 Jun 13, 2024

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 13, 2024 Jun 13, 2024

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?

1.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

*INDD, not INX, of course

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 13, 2024 Jun 13, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 08, 2019 Feb 08, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 09, 2019 Feb 09, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines