Print PDF Attachments Automatically...???

Hello All,

I have an eFax account that emails me a PDF attachment when I get a fax...

Is there any way that anyone can think of that I print the PDF attachments and automatically when an email comes into that account...??

For billing purposes, I open and print them all anyway, so maybe some automation will make my day a little easier...

Thanks for the input...

Mike

PowerBook G4, Mac OS X (10.4.8)

Posted on Jan 30, 2007 1:03 PM

Reply
2 replies

Mar 9, 2007 12:25 PM in response to Michael Guffin

Make a rule to fire an applescript when you get one of these.
Have the script save the attachment in a particular folder.
Give the folder a folder action script which sends the new file to the printer.

User uploaded fileAK

Saving script (change to suit your folder name):

click here to open this script in your editor <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">(* save attachments of selected messages
AK IT Carlow April 2006
will crash if file already exits
*)
using terms from application "Mail"
on perform mail action with messages theMsges
tell application "Mail"
repeat with ThisMessage in theMsges
set Attached to mail attachments of ThisMessage
repeat with ThisAttach in Attached
save ThisAttach in "Macintosh HD:Users:austin:Desktop:Test:" & (name of ThisAttach as text)
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from

using terms from application "Mail"
on run
tell application "Mail" to set sel to selection
tell me to perform mail action with messages (sel)
end run
end using terms from
</pre>

Folder action:

click here to open this script in your editor <pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on adding folder items to this_folder after receiving these_items
do shell script "lpr " & (posixPath (these_items))
--display dialog (posixPath (these_items))
end adding folder items to
</pre>

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Print PDF Attachments Automatically...???

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.