What is this?

I recently bought Salling Clicker and quickly hacked together some scripts which might be useful to others, too:


(Drag into Clicker to install)

Fire Proximity Control
"Fire Proximity Control" sets your Fire status to "Away" if you leave proximity, "Available" if you return and "Busy" if you're on the phone. Needs GUI scripting and at least version 0.99.2 of Fire, I believe.
version history
12.3.04: Jeffrey points out that it's better to move the "activate Fire" command down below the code that checks whether Fire is running. This is fixed in the current version.
12.3.04: Setting state to "Busy" when on the phone should work now



(Drag into Clicker to install)

Mailsmith Proximity Control
"Mailsmith Proximity Control" tells Mailsmith to stop automatically checking mail if you leave proximity and sets it to the old state if you come back.



(Drag into Clicker to install)

VLC Remote
"VLC Remote" is a simple remote control for VLC. You can change the volume and Start/Pause VLC.



(Drag into Clicker to install)

Brightness Proximity Control
Important: You need to edit this Script before it will work on your Mac!
This is my first and mostly untestet attempt at controlling screen brightness using Salling Clicker. Since Apple doesn't provide any kind of access to screen brightness using AppleScript, this script uses GUI scripting to change the brightness. It turns off the screen when you leave and turns it back on when you return. It tries to do the right thing (if you return, it quits system preferences if it wasn't running when you went away or, if it was running, tries to open the preference pane that was open before you left. It also reads the screen brightness when you leave and attempts to set it to the correct value when you return). Since this uses GUI Scripting, and since the names of the user interface elements change in different languages, you need to enter the names of four interface widgets befor running the script. The script will not work if you have a preference pane open with unsaved changes which prompts you to save your changes (like Salling Clicker does). If you're on a recent PowerBook which has the automatic brightness control, you need to turn that off for this script to work. Otherwise, your Mac will crank the brightness right back up after the screen has been turned off.


This is all the scripts do at the moment, and I haven't done any kind of extensive testing. They seem to work just fine, but if they don't work for you, you're free to improve them and either send the changes back to me or release them on your own. I'll probably add additional features when I find the time.

automated iSync synchronisations
Something which is somewhat related to those Salling Clicker scripts: There are some scripts for Clicker that automatically start an iSync synchronisation when you enter proximity. This didn't work for me, as I often didn't stay long enough for the backup to finish, so I did something different: I set up a cron task that runs the synchronisation periodically. This is easily done using CronniX. Just enter this command to start your backup:
osascript -e 'tell application "iSync" to synchronize'