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

Indesign Package Script...

Community Beginner ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

Is there a way to select multiple (or choose all open) Indesign files and collect each file individually (with it's own links/fonts) in their own seperate folders without having to do it for each file?

TOPICS
Print , Scripting

Views

6.0K

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

Advisor , Jan 24, 2020 Jan 24, 2020

you should give Peter Kahrel's Batch Convert script a try.....it has an option to do exactly what you're asking plus a lot more.

https://creativepro.com/files/kahrel/indesign/batch_convert.html

 

Regards,

Mike

Votes

Translate

Translate
Community Expert ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

You can iterate through open documents using app.documents, or get open a list of files using File.openDialog(). Then use packageForPrint() method on each doc. The first 8 arguments are required; there are additional arguments available: https://www.indesignjs.de/extendscriptAPI/indesign-latest/#Document.html#d1e49241__d1e54464

 

Here's an example using app.documents: 

 

var docs = app.documents;
for (var i = 0; i < docs.length; i++) {
    docs[i].packageForPrint(
        "file/path/for/package/folder",
        true, //copying fonts
        true, //copying linked graphics
        true, //copying profiles
        true, //updating graphics
        true, //including hidden layers
        true, //ignore preflight erorrs
        true, //creating report
    );

}

 

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 Beginner ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

Thanks for the quick response, Bryan. I'm not sure how this works. Do i just run it as a script through Indesign?

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 ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

Yes. https://indesignsecrets.com/how-to-install-scripts-in-indesign.php

 

You will need set the path in the first argument. You can create the folders on your desktop by using this version below. Or, use Folder("path") to set the path where you want to save to. 

 

var docs = app.documents;
for (var i = 0; i < docs.length; i++) {
    var fol = new Folder("~/Desktop/" + docs[i].name);
    if (!fol.exists) {
       fol.create();
    }
    docs[i].packageForPrint(
        fol,
        true, //copying fonts
        true, //copying linked graphics
        true, //copying profiles
        true, //updating graphics
        true, //including hidden layers
        true, //ignore preflight erorrs
        true, //creating report
    );

}

  

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
Advisor ,
Jan 24, 2020 Jan 24, 2020

Copy link to clipboard

Copied

you should give Peter Kahrel's Batch Convert script a try.....it has an option to do exactly what you're asking plus a lot more.

https://creativepro.com/files/kahrel/indesign/batch_convert.html

 

Regards,

Mike

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
Explorer ,
Jan 31, 2020 Jan 31, 2020

Copy link to clipboard

Copied

the only caveat, is that indesign will crash during the packaging process. Specifically, it will crash when it tries to make the pdf during the packaging process, after it copied the art. This only happens when the linked art is large (1 GB and above). I am sure it's a something in Indesign though, some memory overflow perhaps. If that happens, collect it without making the pdf and then make the pdf separately. 

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 03, 2020 Feb 03, 2020

Copy link to clipboard

Copied

100% agree with Mike's suggestion as a solution that I use regularly.

If the answer wasn't in my post, perhaps it might be on my blog at colecandoo!

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
Guru ,
Jan 26, 2020 Jan 26, 2020

Copy link to clipboard

Copied

Check out the Package section on this page.

 

— Kas

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 02, 2020 Feb 02, 2020

Copy link to clipboard

Copied

Hi attiliolucchese77,

we need more info. What's your version of InDesign? What's your operating system?

 

Note: The number of arguments of method packageForPrint() changed.

Argument useDocumentHyphenationExceptionsOnly was finally added in InDesign CC 2018.

But unforunately it was not added at the end of the list of arguments.

 

Regards,
Uwe Laubender

( ACP )

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 Beginner ,
Feb 03, 2020 Feb 03, 2020

Copy link to clipboard

Copied

LATEST

Peter Kahrel's Batch Convert script was what i was looking for. Thanks for allyour help.

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