Sleep Your Mac by email

MurphyMac posted a cool little trick to configure your Mac to watch for custom email subject lines and then run Automator actions on their receipt. In his example, Murphy shows how to tell his Mac to go to sleep (using Apple's Automator sleeper action) when he sends mail with "sleeper" in the subject. The secret lies in a combination of AppleScripty goodness and Mail rules. He also posts a "how to reboot a PC by eMail" hint for those of you who are, in the words of 30 Rock, wearing bicurious shoes, at least operating system-wise.
Share
MurphyMac posted a cool little trick to configure your Mac to watch for custom email subject lines and then run Automator actions on their...
Add a Comment
Cosentino -
That's cool.
This tip is also good for machines with dynamic ip addresses. You can make them do something easily by email.
People say it's not secure. Why not? It's just an email. Any email can be sniffed. People don't know this email is a trigger. It's no less secure than any other email you send.
It seems that if Mail.app downloads an email before my BlackBerry, the BlackBerry won't download it. So while I'm out of the house I quit Mail.
Sometimes I forget to quit Mail before I leave so I created a script like this.
I setup a gmail account and made it that if that account receives an email (with a specific subject, etc) then it runs an apple script.
What the script does is disables my primary email account, so my BlackBerry can download them.
By using the seperate gmail account to watch for email, I can send it another email and it enables the disabled account.
It also sends me an email telling me the status of the account :)
So how do you sleep your Mac using SSH?
January 02 2007 at 4:36 PM Report abuse Permalink rate up rate down Replywhy do all this when you could just use ssh?
January 02 2007 at 3:36 PM Report abuse Permalink rate up rate down ReplyYou could definitely set a rule to only allow certain senders (yourself) to activate the sleep function...
January 02 2007 at 3:34 PM Report abuse Permalink rate up rate down ReplyI used a similar thing (only needs AppleScript, not Automator) to get my BitTorrent client to quit at 1600 because I'm on a limited bandwidth deal at peak times.
Now I just use Transmission, which has a built in "speed limit" for certain times of the day, so I just set it to 0kb/s between 1600 and 0000. Much simpler and less likely to fail :)
Why isn't this a huge security flaw?
January 02 2007 at 3:05 PM Report abuse Permalink rate up rate down Reply"Use AppleScript and Mail to auto-start torrent downloads"
http://www.macosxhints.com/article.php?story=20060612193639842
and similarly
"Use AppleScript and Mail for remote control and file access"
http://www.macosxhints.com/article.php?story=20060420065151134
As I recall, this was posted on MacOSXHints.com early in 2006. I think the poster was looking for torrents while at work, sending the .ottent file to his home account and having automator start the torrrent automatically. Pretty neat.
January 02 2007 at 2:20 PM Report abuse Permalink rate up rate down ReplyHot Apps on TUAW
Deals of the Day
more deals- Refurb Apple MacBook Air Laptops: 12" 64GB SSD for $699 + free shipping
- JVC Motion Sensing Clock Radio with Dual iPod Docks for $55 + free shipping
- Apple iPhone Headset with Mic for $4 + $2 s&h
- miFrame Picture Frame Dock for iPad for $64 + $8 s&h
- Refurb Apple iPod nano 8GB MP3 Player for $99 + free shipping, 16GB for $119
- Hannspree Apple-Shaped 28" 1080p LCD HDTV for $270 + free shipping
Software Updates
more updates- EFI Firmware Update brings Lion Internet Recovery to 2010-model Macs
- OS X Lion 10.7.3 released with Safari 5.1.3, Wi-Fi bug fix
- Aperture updated to 3.2.2, addresses Photo Stream issue
- Apple updates Keynote to address Lion issues
- Google Search app gets new look on iPad
- Apple releases Apple TV Software Update 4.4.3



13 Comments