Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

We have an applescript that will batch print InDesign CS6 files from a folder to a laser printer using an InDesign print preset. The script does not work in OS X Yosemite. The script errors out with the print preset. Any thoughts?

$
0
0

tellapplication "Finder"

  activate

  setthefoldertochoose folderwith prompt "Select a Folder with InDesign Files to be Printed" astext

  setthePathtothefolderastext

  settheselected_itemstoeveryitemoffolderthefolder

  iftheselected_itemsis {} then

  beep

  display dialog "Please select a folder with InDesign files before running this script." buttons {"Cancel"} default button 1

  endif

  repeatwithaFileinselected_items

 

 

 

  tellapplication "Adobe InDesign CS6"

  activate

  withtimeoutof 600 seconds

  setuser interaction levelofscript preferencestonever interact

  openaFile

  telldocument 1

  tellprint preferences

  setactive printer presetto "Catalog Pages"

  setpage rangetoall pages

  endtell

  printwithoutprint dialog

  closesavingno

  endtell

  endtimeout

  --might need this delay

  --delay 10

  setuser interaction levelofscript preferencestointeract with all

  endtell

 

  endrepeat

  tellapplication "Finder"

  activate

  display dialog "Batch Printing is complete!" giving up after 5

  endtell

endtell


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>