Hey folks
Sorry, bit of a newbie here so forgive my ignorance.
I have seen a number of postings on batch printing and have been able to get some of it to work pretty well using a Folder Action. However, I’m running into some issues.
A user wanted to be able to have a folder where he could drop dozens of PDFs and have them print out without having to go through Acrobat to do it. However, the files all want to print out in Letter size paper but he wants them all to print as Tabloid.
I’ve searched this board all morning but haven’t been able to find anything to help me out. So far, the script I am using is this:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
on adding folder items to this_folder after receiving these_items
try
tell application “Finder”
repeat with i from 1 to number of items in these_items
try
set this_item to item i of these_items
set the path_string to this_item as string
set the final_path to POSIX path of the path_string
do shell script “/usr/bin/lp '” & final_path & “'”
on error error_message
tell application “Finder”
display dialog "Error for item " & (this_item as string) ¬
& ": " & error_message buttons {“Continue”, “Cancel”} ¬
default button 1 giving up after 120
end tell
end try
end repeat
end tell
on error error_message
tell application “Finder”
display dialog error_message buttons {“Cancel”} ¬
default button 1 giving up after 120
end tell
end try
end adding folder items to
-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
I was hoping someone could help out with this.
Thanks
Keith