This is a simple idea of how to control your Mac from your iPhone or iPad or another Mac any where just use Dropbox and Hazel .
Hazel watches whatever folders you tell it to, automatically organizing your files according to the rules you create. It features a rule interface similar to that of Apple Mail so you should feel right at home. Have Hazel move files around based on name, date, type, what site/email address it came from (Safari and Mail only) and much more. Automatically put your music in your Music folder, movies in Movies. Keep your downloads off the desktop and put them where they are supposed to be
Here is a simple example
The steps on your Mac.
Create a folder in dropbox :
1, named ” Automate “
2, Inside the ” Automate ” folder: Create another folder named ” commands “
3, Now add 2 text files to the folder named ” commands ”
Text File 1,
Name = ” iTunesPlay ”
Text Content = ” play ”
Text File 2,
Named = ” iTunesStop ”
Content = ” stop ”
THE STEPS in hazel.
Create 2 Rules.
Rule 1,
1, Point to your dropbox folder = ” Automate ”
2, if ” ” of the following = all
3, Name – contains = ” iTunes ”
4, Contents – contain = ” play ”
Do the following :
5, Run Applescript = embedded script ->
tell application “iTunes”
play
end tell
6, Move to folder = “commands” with replace
Rule 2, Is the same but:
1, Change step 4 to – Contents – contain = ” stop ”
2, Replace ” play ” with ” stop ” in step 5.
Now all you have to do on your iDevice:
Open Dropbox.
Go to the “commands” folder inside the ” Automate ” folder.
Move the (for example ) ” iTunesPlay ” file from the ” commands ” folder into ” Automate ” folder.
Hazel will detect this and run the appropriate Rule. (iTunes will start playing and the ” iTunesPlay ” file will be moved back into the ” commands ” folder for next time.