AppleScript Variable practice


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. tell application "Address Book"
  2. selection
  3. tell item 1 of result
  4. set theFirstName to first name
  5. set theEmail to value of email 1
  6. end tell
  7. end tell
  8.  
  9. tell application "Mail"
  10. make new outgoing message with properties {visible:true, content:"你好 " & theFirstName & "."}
  11. tell result
  12. make new to recipient at end of to recipients with properties {address:theEmail}
  13. end tell
  14. end tell

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.