Applescript to send message to 30boxes

Applescript to send message to 30boxes

Revisions made by tamc up to 08:28 Wed 03 May 2006

Note, if you wish to edit or undo these revisions, please follow the links from here. You cannot do it from here, becuase someone may have edited the page more recently and because you may need a password to edit the page.

08:28 Wed 03 May 2006

  1. 0. h1. Applescript to send message to 30boxes
  2. 1.
  3. 2. I find the ability to forward messages to www.30boxes.com and have them added to my calendar extremely useful.
  4. 3.
  5. 4. I created an applescript to slightly automate the process:
  6. 5.
  7. 6. <pre>
  8. 7. <code>
  9. 8. tell application "Mail"
  10. 9. set theMessages to the selection
  11. 10. repeat with thisMessage in theMessages
  12. 11. display dialog "30 Boxes subject:" default answer (thisMessage's subject as string)
  13. 12. set theSubject to text returned of result
  14. 13. set newMessage to make new outgoing message
  15. 14. tell newMessage
  16. 15. set subject to theSubject
  17. 16. set content to thisMessage's content
  18. 17. make new to recipient with properties {address:"add@30boxes.com"}
  19. 18. end tell
  20. 19. send newMessage
  21. 20. delete newMessage
  22. 21. end repeat
  23. 22. end tell
  24. 23. </code>
  25. 24. </pre>
View, Edit or see all changes to this page.