2 Replies Latest reply on Mar 20, 2017 6:14 AM by kydn

    Apple script to Javascript



      I'm new to javascript but have managed to put together a simple preflight script that works for my needs. I would like to add one more step to the script that would allow you to change the page numbers in the pages panel. I found a apple script that will do this, but I'm having trouble converting it to Javascript. Any help would be greatly appreciated. I would be happy to share the preflight script if anyone is interested as well!




      set mypagenumber to text returned of (display dialog "set pagenumber" with title "set the pagenumber" with icon 1 default answer "1" buttons {"set"} default button 1)


      tell application "Adobe InDesign CC 2015"

        tell document 1

        tell document preferences

        set start page number to (mypagenumber as integer)

        end tell

        end tell

      end tell