1 Reply Latest reply on May 6, 2008 11:15 AM by Eric @ MCA

    Indesign (AS) How do I set all images to non printing

    Level 1
      I have a script that doe something to txt frames and export PDF.
      How do I set all images to non printing in this script:

      set processFolder to choose folder with prompt "Kies een folder met Indd Docs"
      tell application "Finder"
      if not (exists folder "Nieuw" of processFolder) then
      make new folder at processFolder with properties {name:"Nieuw"}
      end if
      if not (exists folder "Oud" of processFolder) then
      make new folder at processFolder with properties {name:"Oud"}
      end if
      if not (exists folder "PDF" of processFolder) then
      make new folder at processFolder with properties {name:"PDF"}
      end if
      set the destination1_folder to folder "Nieuw" of processFolder as alias
      set the destination2_folder to folder "Oud" of processFolder as alias
      set the destination3_folder to folder "PDF" of processFolder as alias
      end tell

      tell application "Finder"
      try
      set listFiles to (files of contents of processFolder) as alias list
      on error
      set listFiles to (files of contents of processFolder) as alias as list
      end try
      repeat with thisFile in listFiles


      tell application "Adobe InDesign CS3"
      with timeout of 120 seconds
      activate
      open thisFile
      set myDoc to document 1
      tell myDoc
      set properties of view preferences to {horizontal measurement units:millimeters, vertical measurement units:millimeters, ruler origin:page origin}
      set docName to name
      set transform reference point of layout window 1 to top left anchor
      set locked of every text frame to false
      set myBox to every text frame of page 1
      if (count myBox) > 1 then
      set theGroup to (make group at page 1 with properties {group items:every text frame of page 1})
      move theGroup to {8, 10}
      else
      move myBox to {8, 10}
      end if
      end tell
      export document 1 format PDF type to (destination3_folder as string) & docName & ".pdf" using PDF export preset "PDF-mark1" without showing options
      save document 1 to (destination1_folder as string) & docName
      close document 1 saving yes

      tell application "Finder" to move thisFile to destination2_folder with replacing
      end timeout
      end tell
      end repeat
      end tell
      end
      end