Griffin's AirClick USB is a wireless remote control that allows you to control applications such as iTunes, Keynote, and Safari. Unhappy with some of the default choices of application and of the particular actions assigned to the AirClick buttons, I found that it is easy to customize.
Inside the Resources folder of the AirClick application package (control-click and choose Show Package Contents), you will find a file called functions.plist and a set of AppleScripts. Editing functions.plist allows you to assign particular scripts to actions in specified applications. You can also choose whether the script should fire on button press or release, when the button has been held down for a certain amount of time, and whether repeats are allowed.
The scripts are very straightforward, and the easiest thing to do is to copy the ones provided by Griffin and adjust them as you wish. The AirClick application includes in its dictionary commands for simulating keystrokes, adjusting the system volume, and displaying on-screen messages in a bezel.
One important thing to note is that the scripts must be saved as plain text, not as compiled scripts to work. They have the extension .scpt, but they must just be plain text. Confusingly, Script Editor will not let you save a script as plain text with the .scpt extension. So you must edit the scripts in a text editor, not in Script Editor, for them to work.
As examples of what can be done: I set up my AirClick to work with NetNewsWire, letting me move through headlines and select those I want to read; I added support for scrolling and moving back/forward in Camino; and I changed the settings for Keynote to add support for blacking the screen and moving by slide as well as by build.
Inside the Resources folder of the AirClick application package (control-click and choose Show Package Contents), you will find a file called functions.plist and a set of AppleScripts. Editing functions.plist allows you to assign particular scripts to actions in specified applications. You can also choose whether the script should fire on button press or release, when the button has been held down for a certain amount of time, and whether repeats are allowed.
The scripts are very straightforward, and the easiest thing to do is to copy the ones provided by Griffin and adjust them as you wish. The AirClick application includes in its dictionary commands for simulating keystrokes, adjusting the system volume, and displaying on-screen messages in a bezel.
One important thing to note is that the scripts must be saved as plain text, not as compiled scripts to work. They have the extension .scpt, but they must just be plain text. Confusingly, Script Editor will not let you save a script as plain text with the .scpt extension. So you must edit the scripts in a text editor, not in Script Editor, for them to work.
As examples of what can be done: I set up my AirClick to work with NetNewsWire, letting me move through headlines and select those I want to read; I added support for scrolling and moving back/forward in Camino; and I changed the settings for Keynote to add support for blacking the screen and moving by slide as well as by build.
•
[11,680 views]

