Texting is a very convenient form of communication for those who have it. However, if you, a friend, or family member do not have texting, then others must call or email you to get in touch. Using the AppleScript below, you can set your Mac to alert you if you receive a text message.
Simply put, this script takes the mail messages you pass to it, opens them, and then makes Mail the frontmost application. To use it, save it as a script file and place it in a safe place. (You can download a pre-compiled script file here.) Then, in Mail, create a new mail that matches certain parameters. For example, have it run if the email is from one of the text message to email gateways.
using terms from application "Mail"
on perform mail action with messages the_messages for rule theRule
tell application "Mail"
set curVolume to output volume of (get volume settings)
repeat with i in the_messages
open i
end repeat
set volume 10
say "New Text Message"
set volume curVolume
activate
return the_messages
end tell
end perform mail action with messages
end using terms from


0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.