Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
With the help of other skilled applescript users, I found a solution to my dilemma.
By getting the ID of each page, I was able to place my new pages where I wanted them.
Here below, is my NEW and REVISED/UPDATED applescript. If you can improve upon it,
please share with everyone.
Thank you.
* * * * * * * *
(* INSERT • Display Ad pages.applescript *)
set myFirst_Pagenumber to 1
tell application “Adobe InDesign CC 2014”
activate
set theDoc to document 1
set originalPgCount to get count of pages of theDoc
tell theDoc
–DETERMINE WHAT THE DISPLAY AD MASTER PAGE NAME IS
repeat with eachItem in {“ADs-Display ad pages”, “ADs-Display Ad pages”, “ADs-Display Ad Pages”, “ADs-Display ads”, “ADs-Display Ads”, “Ads-Display ads”}
if master spread eachItem exists then
set myMasterChoice to eachItem
end if
end repeat
–tell current application to beep 1
end tell –theDoc
— SET PAGE NUMBERING TO START AT 1
tell theDoc
set continue numbering of section 1 to false
set page number start of section 1 to myFirst_Pagenumber
set continue numbering of section 1 to true
end tell –theDoc
— INSERT NEW “DISPLAY AD” PAGES
tell theDoc
set originalPgCount to count of pages
set myPageNames to get id of every page as list
repeat with eachItem in myPageNames
make new page at after page id eachItem with properties {applied master:master spread myMasterChoice, allow page shuffle:true}
end repeat
–SET GUIDES TO TOP
set properties of the guide preferences to {guides in back:false, guides locked:false, guides shown:true, guides snapto:true, ruler guides color:cyan, ruler guides view threshold:5.0}
end tell –theDoc
end tell –application
tell current application to beep 2
Hello Jongware
Excellent solution!
I wish it was my birthday, so I could claim this “prize” for myself!
But alas, your wonderful solution is now for all “word-fanatics” and layout architects everywhere!
Thank you.
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.