Apple Remote Control

I recently came across this utility for access the apple remote. It should be possible to use in shell scripts, applescripts and even Java as described here

I wanted to be able to have exclusive access to the remote and I found this discussion which showed me how to do it by changing the open command to use a 1 (this occurs in two places in the command.
ioReturnValue = (*hidDeviceInterface)->open(hidDeviceInterface, 1);

I have uploaded my changes here:
How to compile is in the source code, but it took me a while to realise that, so here’s the command: gcc -Wall -o iremoted iremoted.c -framework IOKit -framework Carbon

Reader Comments

  1. Hi,
    A question on iRemoted.
    Can it run in Lion?
    I asked because Carbon no longer supported in Lion.

    Thank you for your attention.

    Merry Xmas


  2. Yea the code probably doesn’t work. I’m not sure I haven’t tried yet.

    Is is possible to rewrite for Cocoa, and I meant to, but haven’t got round to it.

    Merry Christmas!

Write a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.