Open Mail Attachments
Open Mail Attachments
- Subject: Open Mail Attachments
- From: "John R." <email@hidden>
- Date: Fri, 13 Jan 2006 11:04:38 -0500
Is there a way to open a Mail attachment through Applescript?
Plan A: Standard "Open" command does not work.
Below is a simple script (what AS is great for...) to open every
attachment among the selected messages
tell application "Mail"
set MList to selection
set AList to {}
repeat with myMessage in MList
set AList to AList & every mail attachment of myMessage
end repeat
open AList --> Script error from Mail
end tell
Plan B: Neither can I ask Finder to open it, because there is no
property for a full path to the attachment file in the Mail folders -
just the file name.
Plan C: Do I have to figure out how to save to a temporary folder and
open from there? Ugh.
Any better ideas?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden