Return to Snippet

Revision: 17821
at September 14, 2009 22:35 by lildemon


Initial Code
tell application "Address Book"
	selection
	tell item 1 of result
		set theFirstName to first name
		set theEmail to value of email 1
	end tell
end tell

tell application "Mail"
	make new outgoing message with properties {visible:true, content:"你好 " & theFirstName & "."}
	tell result
		make new to recipient at end of to recipients with properties {address:theEmail}
	end tell
end tell

Initial URL


Initial Description


Initial Title
AppleScript Variable practice

Initial Tags


Initial Language
AppleScript