Send SMS to Messages and run commands with AppleScript
It is possible to send an SMS command to your Mac using an AppleScript. I’ve made one which takes a picture when I send the command /photo to iMessages on my Mac.
The script is very simple; it must be set up Messages’ Alerts preferences. Choose Event > Message Received, then check Run an Apple Script. This will check each message you get for the command; in this case, /photo.
The script will turn the volume all the way down (and up again) before taking a picture with PhotoBooth so it does not make any noise.
Then you can make a symbolic link from the PhotoBooth folder to your Dropbox so you can check the photos from your mobile device.
Here’s the script:
using terms from application "Messages" on message received theMessage from theBuddy for theChat if (the ...
via MacOSXHints.com http://hints.macworld.com/article.php?story=20121002150618990










