Sponsored by Gilt Man
It's a Gilt Man's world view!
giltman.com - Get gear and gadgets at up to 70% off. Shop like a guy, dress like a man. You're invited.
42 Comments
- Timmargh, on 10/12/2007, -0/+2I do agree with you, Timtop - the majority of users won't ever need to do this. Speaking from a personal view: I'm physically disabled and there have been several times when I've gotten into bed and realised I'd forgotten to put my Mac to sleep - my phone is always with me so it was just an idea to make my life a bit easier.
Thanks for digging it! - inactive, on 10/12/2007, -0/+2Mine goes to sleep automatically, and so does my dog.
- fizzeh, on 10/12/2007, -0/+1Very clever way of using the rules part of mail. I simplified my steps. Set the rule like you said, but run one script. The script sends my phone a confirmation message, delays five seconds, and then puts the computer to sleep. It waits five secs so that the message definitely sends. The script is as follows:
tell application "Mail"
set theSubject to "" as string
set theBody to "Confirmation: Sleep" as string
set theAdd to "[your cell phone's e-mail address]" as string
set theSend to "[your email address through mail]" as string
set newMessage to make new outgoing message with properties {sender:theSend, subject:theSubject, content:theBody & return & return}
tell newMessage
set theRe to make new to recipient with properties {address:theAdd}
end tell
send newMessage
end tell
delay 5
tell application "System Events" to sleep - ipunchstrangers, on 10/12/2007, -0/+1oh man I already can't wait until someone figures out a way to make their cellphone turn off someone elses computer
- swindmill, on 10/12/2007, -0/+1To the people saying this has no use at all: do you not realize that some people have stated they do have a use for it? Get over yourselves and quit making negative comments that which are a mere reflection of your own situation. It's like me saying Photoshop is a "gee whiz" with no practical use, because I don't edit pictures or whatever.
- rnelsonee, on 10/12/2007, -0/+1Real nerds run a WAP servers to control their Macs from their phones.
Excellent tutorial here (I know nothing of CGI or AppleScript and managed to get it to work)
http://www.macdevcenter.com/pub/a/mac/2005/03/01/itunes_remote.html - timtop, on 10/12/2007, -0/+1not to troll but...
why, would I ever do this? I mean is there a common scenario where the average digger/power-user needs to remotely sleep his computer via cellphone. I mean dont most people leave their machines on purposely? When is the last time you forgot to turn off your machine and you had your panties in a bunch over it?
still digging cuz the idea is cool, albeit not super useful - arniegrape, on 10/12/2007, -0/+0This is not putting it to sleep with a TXT, it's putting it to sleep with a damned email. Not the same thing.
- Sabotage, on 10/12/2007, -0/+0More useful if you could 'wake' the computer.
- joeyjojo, on 10/12/2007, -2/+2not sure I want to see DIGG turn into a 'look, here's my latest blog post' aggregator.
- randylovin, on 10/12/2007, -0/+0"Anyone know of anything like this for WinXP?"
Nothing even close, without knowing VBScript and leaving Outlook running on the machine (BLOAT!). - djspike, on 10/12/2007, -0/+0Anyone know of anything like this for WinXP?
- mgorbsky, on 10/12/2007, -0/+0What I think is cool about this is the fact that you don't have to use it to put your comnputer to sleep.
With the ability to run a script, you can get your mac to do all kinds of other stuff (run virus scan, perform backup, maybe even get the thing to send you an email back with information such as the last set of directions you looked at in google).
The point is, not many average users would think to do something like this. I like the idea and have been attempting to do something similar on my PC. But, with no VB knowledge, its much more difficult. +digg - randylovin, on 10/12/2007, -0/+0That's nothing. I've setup my XServe at work to do a whole slew of things via email command, with confirmation replies!
Mail.app + Applescript + Automator - gamercorps, on 10/12/2007, -0/+0Cool that they took the time to document this, I always appreciate people that take the time to document their findings...
Too bad we were rebooting/shutdown pc's/servers in the early to mid 90's using phones and modems with APC products... Also any of you that need this type of automation need to look at X10 type products for ease use via pda or internet...last comment, I'm sure if this was documented for a windows system it would be considered an exploit instead of a nifty tool. - orangetiki, on 10/12/2007, -0/+0I've seen this before with OS 9. No dig. It's just an action you have in your mail program that it scans for. MacAddict covered this before including such things as e-mail your portfolio to someone, sync mail, send contacts, etc. All from sending your mac an e-mail. Not sure if Outlook has the same power or not.
- jhunt, on 10/12/2007, -0/+0Kinda nifty, not the most practicle application, but demonstrates what is possible.
- redheadfred, on 10/12/2007, -0/+0looks cool, i'll have to try that when i get tiger
- einsteindesign, on 10/12/2007, -0/+0"...oh man I already can't wait until someone figures out a way to make their cellphone turn off someone elses computer..."
Unless you're a fool, you'll add another conditional match to your email client, ie: "IF MESSAGE BODY CONTAINS (password)"
Then make a fugly password. To successfully hack -- and cause a shutdown -- you'd have to send 1 email for every word in your table, 40,000 to 200,000 or more depending on what you're using for brute strength. You'd crash someone's mail server long before you succesfully shut down a remote client. - Dragular, on 10/12/2007, -0/+0"Unless you're a fool, you'll add another conditional match to your email client, ie: "IF MESSAGE BODY CONTAINS (password)"
Just make sure you don't leave your cell phone lying around, all it takes is hitting the "sent messages" option and boom, instant password crack lol.
"Why not just set the mac to go to sleep on it's own? My mac sets itself to sleep after around 10 mins of inactivity. =/"
Because usually whatever I set my PC to automatically go into sleep mode for is EXACTLY one minute less than what I need it to be, or one minute over. I'd love to have something like this set up on my PC so that (since I'm using a POS surge protector) I could turn the thing off when i'm at work and suddenly THE STORM OF THE CENTURY blows in. - Dingle, on 10/12/2007, -0/+0I have a similar deal. I have a written applescripts that when I recieve an instant message in adium, such as the words /sleepy. To set my mac asleep. Its been handy a few times when your away from your computer and wish it to get offline and go to sleep.
- Jaymoon, on 10/12/2007, -0/+0I used to have a little setup with Trillian where I could just send a message to a dummy account I created so that it would reboot the PC, and stop what I was downloading there... ;)
- ryan, on 10/12/2007, -0/+0Why not just set the mac to go to sleep on it's own? My mac sets itself to sleep after around 10 mins of inactivity. =/
- gmgauthi, on 10/12/2007, -0/+0This is pure silliness. A "Gee Whiz" with no practical use. Now, if someone had hooked their Mac up to their kitchen, and could start the coffee maker or the microwave via email with an applescript, THAT would be impressive.
- Timmargh, on 10/12/2007, -0/+0"This is not putting it to sleep with a TXT, it's putting it to sleep with a damned email. Not the same thing."
I know, but the process start with me sending a text, albeit a multimedia message (MMS). I was just looking for a snappy-ish title. - teh_toaster, on 10/12/2007, -0/+0actually, you don't even need to write batch scripts for the less comlicated things of starting a program or shutting down (shutdown.exe /s) it help to know command line args for stuff like Steam so that you can have CS:S automatically start and join a server while you pull in your driveway orride the elevator.
- sonofalink, on 10/12/2007, -0/+0I'd like to turn someone's cellphone off with my computer. That would be awesome.
+digg - Timmargh, on 10/12/2007, -0/+0"not sure I want to see DIGG turn into a 'look, here's my latest blog post' aggregator."
That's not what I'm trying to do, Joeyjojo - I've written a few posts on my site about other stuff I've done with my Mac but I got a few positive comments about this so I thought I'd see how it went down here.
To others of you: my Mac is on all the time I'm about but I don't have it set to turn off after a period of inactivity because I often set it off on some task and I'm too forgetful to remember to turn off the "auto sleep".
Thanks to everyone who's dugg this. - teh_toaster, on 10/12/2007, -0/+0for any computer running Outlook you can do this by setting up rules and writing batch scripts to be run when certain messages are received. I have mine set up to start CS:S, shutdown, and other little things.
its not something for everyone though. - swindmill, on 10/12/2007, -0/+0I hate that these things can't be edited. Anyways "which" was obviously a repeat word of sorts in my post above
- Makyo, on 10/12/2007, -0/+0I'll digg it for the idea of using an email message to do something --- like shutdown the computer when I'm at work and lightning storms start rolling through.
- inactive, on 10/12/2007, -0/+0" you can get your mac to do all kinds of other stuff...run virus scan"
i'm scratching my head on this one. - highpass, on 10/12/2007, -0/+0Does this imply you can basically automate anything from an email with an Automator script? Clever, albeit perhaps not useful for everyone.
- patrickweber, on 10/12/2007, -0/+0I'd rather see something that will turn ON the computer (powered off or not) via a simple text message.
Wakes up in the morning.
Sends text messages.
Get's ready for the day.
Computer is on and running when you come downstairs. - pHr34kY, on 10/12/2007, -0/+0My bedroom PC was running as a web server once. Then along came an electrical storm, and I was a good half hour from home.
I just opened an SSH client on my phone (through GPRS), logged into my PC and sent it a halt command. Not that hard, and didn't require anything too fancy. - Ferneaux, on 10/12/2007, -0/+0
Good timing on this post....I just started tinkering around with the Automator a few weeks ago.
Rather than having the Mac go to "Sleep", I replaced it with the "Shut Down" action available at http://www.apple.com/downloads/macosx/automator/shutdown.html (by the same people who have that Sleep action). It works wonders for when I'm away from home and need to shut it down when an unexpected storms comes threatening the electrical appliances. ;o)
DUGG. - lfcfan, on 10/12/2007, -0/+0"Get over yourselves and quit making negative comments that which are a mere reflection of your own situation."
Thank you for saying this. Besides, something doesn't necessarily have to be functional in order for it to be a good read. I'd never put my Mac to sleep with a text message (or email, for you more anal diggsters), but I thought it was interesting and resourceful, I dugg it. - cmaulsby, on 10/12/2007, -0/+0Just another example of "cool & trendy" over actual function. Neat .. but not helpful. I'd like to be able to schedule a recording this way on a media center. Now that would be cool.
- Wings, on 10/12/2007, -0/+0I'm with sabarsky, wondering why on earth anyone would want to remotely run a virus scan on a Mac. In fact.... why would anyone run a virus scan on a Mac, period. That's like fishing for trout in the desert.
- Timmargh, on 10/12/2007, -0/+0Thanks mate - you've restored my faith in mankind.
- LeeVal, on 10/12/2007, -1/+0try it on windows
Windows Sleep
Now Formating C:/
22% Formated


What is Digg?