A poster on macOSXHints has written an AppleScript that allows you to control your Mac remotely, performing a variety of tasks that you can trigger using an email in Mail.app.
Unable to connect to his Mac at home via VNC or SSH due to a firewall, he developed a script. When added to a rule in Mail.app, it is triggered by keywords in an email that send to your Mac at home.
The script can get a file to post back to you, launch an application, perform a shell script or save an attachment to a certain location.
If you are not worried about the security implications of this, you can also check out two other apps, Commander and RCMail, which offer the same “remote control” functions via Mail.app and AppleScript.
- Downloading torrents remotely via Mail.app
- RCMail: Remotely control your Mac by email
- Make an iCal event run an AppleScript
- iCalMail: Emails from iCal at a fixed time
- Security flaw with scripts in Mail.app
Tags: Apple Mail, applescript, helpful apps, mail.app, plugins, remote access, remote control, rules