Guest User

Untitled

a guest
Jun 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. tell application "Mail"
  2. set theMessage to first item of every message in inbox
  3. set theSubject to subject of theMessage
  4.  
  5. if theSubject contains "Failed" then
  6. say "Chuck Norris is preparing a round house kick!"
  7. else if theSubject contains "Normal" then
  8. say "Chuck Norris can rest now."
  9. end if
  10.  
  11. say theSubject
  12. end tell
Add Comment
Please, Sign In to add comment