• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Open Mail Attachments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: RE: Line feed, paragraph or whatever in item of list
  • Next by Date: opening the folders in window 1
  • Previous by thread: Re: Line feed, paragraph or whatever in item of list
  • Next by thread: opening the folders in window 1
  • Index(es):
    • Date
    • Thread