Skip to main content
mosheyri
Participating Frequently
March 17, 2015
Question

How to create a script that deletes all InDesign pages except selected

  • March 17, 2015
  • 1 reply
  • 533 views

How do I create a script that does the following:

  • Delete all pages that are not selected. Then....
  • Save a copy, prompt for file name and location. Then....
  • Undo the removing of pages (so that I can run the process (script) again and select the next batch of pages....

This is something that I do manually on a template every day so automating the process would be a huge help. Anyone that can assist would be greatly appreciated.

This topic has been closed for replies.

1 reply

Jump_Over
Legend
March 17, 2015

Hi,

To read selection from Pages Panel is a problem using scripting.

However to interact with user is not, so SUI dialog which ask for page ranges (alike print dialog ask) could be a solution.

After removing saveAsCopy could be called, so original doc is ready for further choices.

Jarek

mosheyri
mosheyriAuthor
Participating Frequently
March 17, 2015

Thanks Jarek for your quick response. Since I am not proficient in scripting (which I should of indicated initially), I am not familiar with what your answering. Can you (or someone else) please explain? Thanks again.

mosheyri
mosheyriAuthor
Participating Frequently
March 19, 2015

Can anyone come up with another way to quickly separate a multi-page InDesign template into individual pages? Thanks.