gcoghill

Untitled

Jan 5th, 2013
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using terms from application "Mail"
  2.     on perform mail action with messages theMessage for rule theRule
  3.         repeat with a from 1 to count theMessage
  4.             set theBody to "message:%3C" & message id of theMessage & "%3E"
  5.             set theSubject to the subject of theMessage & " (From " & the sender of theMessage & ")"
  6.             tell application "Reminders"
  7.                 set theList to list "Reminders"
  8.                 set newToDo to make new reminder with properties {name:theSubject, body:theBody, container:theList, due date:((current date) + (1 * hours))}
  9.             end tell
  10.         end repeat
  11.     end perform mail action with messages
  12. end using terms from
Advertisement
Add Comment
Please, Sign In to add comment