• Home

Run commands on your iPhone from the Apple Remote!

Hey Guys! I’ve developed a new cool project called Customote that allows you to set a custom action for each button in your Mac’s Apple Remote. I recorded a video demonstration of the tool in action (click here to see).

It’s very simple to use. After downloading and installing the .pkg file, if you press any Apple Remote’s button, you should listen your Mac saying what you pressed. There are just test commands using the “say” trick.

To set a custom action for each button, type “customote -s” in the Terminal and follow the screen instructions. For more commands, please type “customote”.

Customote just works for Macs, because the Apple Remote is an IR Remote Control, so, a IR sensor is needed to read the control’s data, and, the iPhone doesn’t have an IR sensor, but I found a way to use your Apple Remote to send commands to your iPhone. Here is how:

  1. You should have Customote installed and running to continue.
  2. Open the Terminal.
  3. Type ” customote -s BUTTON_NUMBER ’ssh root@youriphoneip COMMAND_TO_RUN_IN_YOUR_IPHONE’ ” (you can see a list of button numbers by pressing “customote -s”)
  4. Customote will save the action for the button BUTTON_NUMBER.
  5. If you press the button BUTTON_NUMBER in your Apple Remote, your iPhone should be running the command COMMAND_TO_RUN_IN_YOUR_IPHONE.

If you want, for example, to reboot your iPhone when pressing the “Next Music” button, you should type: ” customote -s 2 ’ssh root@youriphoneip reboot’ “.

Well, that’s it!

Bye!

Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl