Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A much simpler solution via Applescript' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A much simpler solution via Applescript
Authored by: leono on Aug 23, '06 01:17:04PM
The following AppleScript will allow you to create a message with an ad-hoc email address:

tell application "Mail"
	display dialog "What From address do you desire?" default answer ""
	set newSender to text returned of the result
	set newMessage to make new outgoing message
	tell newMessage
		set visible to true
		set sender to newSender
		make new bcc recipient with properties {address:newSender, name:newSender}
	end tell
end tell

It simply creates asks what email you want to send from and creates a new message with that From address. I've got it set up to BCC me since these messages don't get automatically stored in your Sent folder by Mail.

Since Tiger's (IIRC) Mail program lost it's nice Scripts menu, I put this in my Mail Scripts folder (~/Library/Scripts/Applications/Mail) and use FastScripts to assign it a hotkey.

This and my other Applescripts can be found at leonout.com/applescripts, but be warned that that page is out of date, so ignore the instructions there, and know that the Reply versions of these scripts don't work in Tiger since Apple broke something.



[ Reply to This | # ]
Re: A much simpler solution via Applescript
Authored by: sjk on Aug 24, '06 10:21:03AM

Your script (or a variant of it) will sure be more convenient than editing infrequently used sender addresses in the single-line Email Addresses field. Thanks!



[ Reply to This | # ]