Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. using terms from application "Mail"
  2. on perform mail action with messages theMessages for rule thisRule
  3. repeat with theMessage in theMessages
  4. tell theMessage
  5. try
  6. set font of content to "Helvetica"
  7. on error e number n
  8. my logit("OOPs: " & e & " " & n, "MailScript")
  9. end try
  10. end tell
  11. end repeat
  12. end perform mail action with messages
  13. end using terms from
  14.  
  15. to logit(log_string, log_file)
  16. do shell script ¬
  17. "echo `date '+%Y-%m-%d %T: '`"" & log_string & ¬
  18. "" >> $HOME/log_" & log_file & ".log"
  19. end logit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement