0 Replies Latest reply on Aug 24, 2013 9:42 AM by greenrookie

    export jpeg droplet add page number

    greenrookie Level 2

      Hello everyone,

       

      I have this desktop droplet to export JPEG pages from InDesign, but the exported pages are numbered (page 1) = BLANK.jpg, (page 2) = 02.jpg, (page 3) = 03.jpg. So page 1 of documents won't be numbered.

       

      on open these_items

          repeat with these_item in these_items

              tell application "Adobe InDesign CS5.5"

                 

                  set user interaction level of script preferences to never interact

                  open these_item

                  tell JPEG export preferences

                      set JPEG Quality to maximum

                      set simulate overprint to false

                      set anti alias to true

                      set use document bleeds to true

                      set embed color profile to false

                      set jpeg color space to RGB

                      set Exporting Spread to false

                      set JPEG Rendering style to baseline encoding

                      set export resolution to 72

                      set JPEG export range to export all

                  end tell

                 

                  set myDocName to name of active document

                  set text item delimiters of AppleScript to {".indd"}

                  set tString to text items of myDocName

                  set text item delimiters of AppleScript to {""}

                  set myFixedName to (tString as string)

                  set text item delimiters of AppleScript to ""

                  set myFolder to "Macintosh HD:Users:gr:Desktop"

                  set myFilePath to myFolder & ":" & myFixedName & "_" & ".jpg" as string

                  export active document format JPG to myFilePath

                 

                  set user interaction level of script preferences to interact with all

                  close active document

              end tell

          end repeat

      end open

       

      I can't work out the page string thingy to have the filename output as (page 1) = 01.jpg, (page 2) = 02.jpg, (page 3) = 03.jpg etc.

       

      Many thanks in advance!

       

      gr