Run commands on your iPhone from the Apple Remote!

Author: pH  //  Category: News

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!


BigBoss Authors: Mark Bruce & Kory Lee

2 Responses to “Run commands on your iPhone from the Apple Remote!”

  1. Chris Says:

    That is cool, I have a universal dock and was hoping there would be a way that I could do more than just adjust the music with the remote.

    I was hoping to be able to press the menu button, or hold it and it would turn on voice activation. Like holding the home button down for 3 seconds.

    I use it in my car, and having voice commands to control the music and choose albums without having to use the remote would be fantastic.

  2. Anonymous Says:

    imran)

Leave a Reply