opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 14 January 2006 • 12:04AM -0500

Open Mail Attachments
by John R.

REPLY TO AUTHOR
 
REPLY TO GROUP




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      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

opensubscriber is not affiliated with the authors of this message nor responsible for its content.