mailBlast, Mobile Blasting

Note: This post is over 6 months old. You may want to check later in this blog to see if there is new information.

Granted, it’s not nearly the ideal solution to a mobile MoodBlast, but this script will allow you to send an email from anywhere and blast from your home computer. You can use whatever rules you like to trigger it and to make it secure. Once called, the script checks the subject to see if it begins with “blast”. If it does, it will send the remainder of the string to MoodBlast…

Click here to open directly in Script Editor.

Code description

  1. on perform_mail_action(info)
  2. tell application "Mail"
  3. set the_messages to |SelectedMessages| of info
  4. repeat with a_message in the_messages
  5. set the_subject to (content of header "subject" of a_message) as text
  6. set the_content to (content of a_message) as text
  7. if the_subject begins with "blast" then
  8. set {astid, AppleScript's text item delimiters} to {AppleScript's text item delimiters, " "}
  9. set blastString to text items 2 thru (count of text items of the_subject) of the_subject as text
  10. set AppleScript's text item delimiters to astid
  11. tell application "MoodBlast" to blast blastString
  12. end if
  13. end repeat
  14. end tell
  15. end perform_mail_action

Save the script in Script Editor as a compiled script and tell your mail rule to call this script when the conditions are met. Then send an email to the account that will trigger the rule and make the subject something like: blast ^tjf Testing mailblast. That will send “Testing mailblast” to Twitter, Jaiku and Facebook, downcasing the first letter for Facebook, of course.

» » » »

Have your say

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>




Safari hates me