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

Applescript to merge 2 documents

Community Beginner ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

I have a need to merge 2 documents

We always give clients a starting set of ads but sometimes we add a second document depending on the situation.

With the starting document open i want to open a second document and move all the pages to the starting document (there are 2 ad sizes so i have to keep all the full page ads together and all the half page ads together)

I only understand Applescript (javascript is beyond me presently )

 

Here is what I have so far i just cant get the page to move BETWEEN the 2 docs, I will only put the moving part....


repeat with i from 1 to BCend2
-- this works but stays within the same document
move page (i as integer) to after page (BCend as integer)
--this next line errors i need the right language for pointing to the other document that is open
move page (i as integer) to after page (BCend as integer) of document 2 --(fails)
end repeat

TOPICS
Scripting

Views

249

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 , Oct 22, 2020 Oct 22, 2020

Hi Brian,

Take a look at the Applescript at the bottom of this post, see if you can use this with what you already have to meet your goals.

 

https://community.adobe.com/t5/indesign/combine-open-documents-into-1-file-with-applescript/td-p/9274827?page=1

 

Regards,

Mike

Votes

Translate

Translate
Advisor ,
Oct 22, 2020 Oct 22, 2020

Copy link to clipboard

Copied

Hi Brian,

Take a look at the Applescript at the bottom of this post, see if you can use this with what you already have to meet your goals.

 

https://community.adobe.com/t5/indesign/combine-open-documents-into-1-file-with-applescript/td-p/927...

 

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
Community Beginner ,
Oct 26, 2020 Oct 26, 2020

Copy link to clipboard

Copied

LATEST

Thanks Mike,

Your guidance got me the results I needed! Working like a charm now.

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