Sometimes you need to turn off the Mac, left at work or at home, but the strength to go back there to flip the power button anymore. For such situations, it would be good to set up the remote control of your computer via the iPhone. Few people know that this option is on the "apple" gadget exists, and how to use it, you will learn from this article.
Not so long ago we wrote about the launcher Launch Center Pro , which presents a number of new features to the operating system iOS. There are other programs to help you manage scripts OS (eg, Editorial), but only in the case of Launch Center Pro solution becomes really useful.
For those who are not familiar with Launch Center Pro, an application to automate tasks. The program's interface is a grid for quick commands, among which there are also downloading files in Dropbox. It is useful to us in order to translate the remote Mac to sleep.
To perform the above using the iPhone, you will need an account Dropbox, Launch Center Pro app on iOS-device and software Hazel on Mac.
How to remotely lock your Mac with iPhone:
Step 1: Create a new folder in your Dropbox, for example «/ Apps / Launch Center Pro».
Step 2: Create a rule in Hazel Applescript to run the script when a file in it called «Sleep Mac». Also, add the command to delete the file after the action.
Script Applescript:
tell application "Finder"
Sleep
end tell
Test the script by creating a text file in the folder «Sleep Mac».
Step 3: Open the Launch Center Pro on your iPhone or iPad and slide the new action «Sleep Mac». Use Action Composer, menu System Actions> In App Dropbox> New File.
Step 4: Configure the following settings: Name: Sleep Mac; Text: does not matter; Path: [the same as in Dropbox]; Name: Sleep Mac.
Step 5: Click Done.
As a result, you get on your iPhone and iPad button to turn off the remote Mac. Because as a control channel serves Dropbox, for this do not even have to be in the same network Wi-Fi - put the computer into sleep mode can be from anywhere in the world.