printing PDF files
printing PDF files
- Subject: printing PDF files
- From: David DuBois <email@hidden>
- Date: Tue, 10 Nov 2009 08:39:55 -0600
I am trying to write a folder action that will print any pdf that is dropped into it. It basically works except that I cannot get it past the print dialog, even with a systems event to press the print key. If I use the system event by itself with an open print dialog, it will press the print key, but when I include it in a larger script, it stops working.
What I have is basically:
on adding folder items to this_folder after receiving added_items
tell application "Finder"
try
repeat with this_item in added_items
set PDFname to the name of file this_item
tell application "Adobe Acrobat Professional"
activate
open PDFname
print PDFname without shrink to fit
tell application "System Events"
tell process "Acrobat"
click button "Print" of window "Print"
end tell
end tell
close document PDFname saving no
end tell
end repeat
end try
end tell
end adding folder items to
Any suggestions?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden