Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: How to add new pages to a document – on left-hand side #79155

    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

    in reply to: GREP — Moving "one-letter" words to next line #61694

    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.

Viewing 2 posts - 1 through 2 (of 2 total)