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


Click here to return to the 'How to still get this to work in Mountain Lion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to still get this to work in Mountain Lion
Authored by: trencherjr on Oct 23, '13 01:03:43PM
This no longer works to embed variables in the body of an email created with the "New Mail Message" action in Automator (I had it working in 10.6.8, but no go in Mountain Lion as was reported). However, embedding variables in this way still works in Applescripts called via the "Run Applescript" action in Automator. Something like this works:
on run
	tell application "Mail"
		set newMessage to make new outgoing message with properties {subject:"Meeting with $(34BB10BD-7F75-4871-A89F-8252F1FF251A)", content:"Dear $(E6B1894A-A0DE-4BF1-907A-B66561D9C4BD)..." & return & return}
		tell newMessage
			set visible to true
			make new to recipient at end of to recipients with properties {address:"$(67EC9CB4-D3FB-41D8-9782-835E792DF9B9)"}
		end tell
		activate
	end tell
end run
This method still seems to work with certain actions but not with others.

[ Reply to This | # ]