I am working on printing a folder of PDF files directly to a printer without having to go through Preview or Acrobat or others
i have found thast both
lpr -p and lp -d work the same
is there a benefit of one over the other?
and
secondly
is there any way to scale the output to fit the page ( say like 92%)?
set myPrinter to “imagePASS-C1_Print”
set myfolder to “Macintosh HD:Users:jbradfield:Desktop: test printscript:”
set myFiles to list folder myfolder without invisibles
repeat with x from 1 to count myFiles
set thisPath to POSIX path of file (myfolder & (item x of myFiles) as string)
–should return /Users/SomeUser/Desktop/Jobs/afile.pdf
set theShell to "lpr -p " & myPrinter & " " & thisPath
try
do shell script theShell
–optionally log success here
on error err
–or, if there was a problem log that or send it to someone
end try
end repeat
–this script was automatically tagged for
–color coded syntax by Script to Markup Code
–written by Jonathan Nathan
Any help or insight would be great
I know also that i can do this through Acrobat or others but i noticed that the shell script seems so much faster i thought it would be nice to take advantage of this speed