Skip to main content
Participant
January 16, 2026
Answered

InDesign 21.1 Script for Extracting/separating individual pages

  • January 16, 2026
  • 3 replies
  • 178 views

Hi. Can anyone recommend a script that extracts individual pages from a multi-page document? I found some old ones but not sure if there's one for the current software. 

Correct answer m1b

Hi @joec46861898 I've previously written a script to do this but I've updated it for your case, and added the ability to divide by spreads or pages. You can download the new Divide Document script from my github repo or direct download.

 

Can you try it out and let me know how it goes for you?

- Mark

3 replies

m1b
Community Expert
m1bCommunity ExpertCorrect answer
Community Expert
January 17, 2026

Hi @joec46861898 I've previously written a script to do this but I've updated it for your case, and added the ability to divide by spreads or pages. You can download the new Divide Document script from my github repo or direct download.

 

Can you try it out and let me know how it goes for you?

- Mark

Participant
January 17, 2026

thanks so much! i'll give it a go. 

brian_p_dts
Community Expert
Community Expert
January 16, 2026

How do you want to extract them? If as PDFs, you can do that from the Export PDF option. Otherwise, please share a little bit more about what you need and how the ones you found fell short. 

 

Participant
January 17, 2026

thanks... yeah i know how to do that. it's to separate a multi-page InDesign file into single InDesign pages. 

Participant
January 16, 2026
Give the old ones you found a try. If they error it is most likely a posix path issue, changing the “:" to “/“.

If you are proficient at AppleScript you can just find the issues. If not try AI, with Chatgpt dump the code in the prompt copy out the result, if it errors copy the error back into the prompt, and let it figure out the mistake. GPT is not as proficient at coding as other languages, ….but if it doesn’t send you down the rabbit hole. It can reason it ways out of the problem eventually.

The best way to go is if you understand what its issue is. And then just replace the chunks.

Basically it is very fast at laying out a script. Which is its strength. But understanding idiosyncracies of AppleScript is its weakness. It may often go on bash unix tangents for bits of the script. Which does work sometimes.
Participant
January 17, 2026

thanks for the tip.... i'm not proficient at all lol