Do you often forget to put your Mac to sleep before getting up and walking away? David Sparks shows off a clever way to remotely put it to sleep using Drafts, Dropbox and Hazel.
The basic premise here is incredibly simple:
- I type "MB sleep" in Drafts and save it to the standard Drafts folder on Dropbox. (In my case it is located at Dropbox/Apps/Drafts.) I use "MB sleep" because I'm going to add a second one for putting the iMac to sleep.
- Point Hazel at the Drafts folder and tell it to look for a file that contains the terms "MB sleep"
- When Hazel sees the file, it deletes it and runs an AppleScript to put the Mac to sleep.
This is a really simple script. tell application "Finder"
sleep
end tell
Once you set this up, open Drafts and type "MB sleep" and save it to Dropbox. Within a few seconds, your Mac goes safely to sleep.
That's it. Once you set it all up, you can send your Mac to sleep with a simple command. Really, any iOS text editor that saves to Dropbox will work, but Drafts makes it especially easy to do. Head over to MacSparky for a few more ways to automate this even more.
Put Your Mac to Sleep with iOS Drafts [MacSparky via The Instructional]
Comments
Be the first to comment on this story!
Comment Voting
Up Votes
Down Votes
Only logged in users may vote for comments!
Please log in or register to gain access to this feature.
Get Permalink