Highlighted

Applescript to merge 2 documents

New Here ,
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

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

TOPICS
Scripting

Views

46

Likes

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

Applescript to merge 2 documents

New Here ,
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

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

TOPICS
Scripting

Views

47

Likes

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

Likes

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
Reply
Loading...
Oct 22, 2020 0
New Here ,
Oct 26, 2020

Copy link to clipboard

Copied

Thanks Mike,

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

Likes

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
Reply
Loading...
Oct 26, 2020 0