Monday, December 01, 2003

AppleScript and Airport

(originally posted at bigbadgeek.com)

The goal was simple, create an AppleScript to automate some of my daily functions - but only to do so when joined to a specific wireless network, and over a specific signal level.

As a newbie to AppleScript, I tooled around in Script Editor for a while and tried opening different dictionaries. I got online and searched through Apple's knowledge base, versiontracker, macosxhints, all the usual places and only came to find references to "Airport Scripting Application" - which appeared to be an AppleScript library to allow you to interface with Airport. The library was bundled with Airport software version 1.3. The current version is 3.2 and the library is no longer included (I braved the download and checked the manifest).

All was not lost, however, it only took a few minutes in #joiito to learn that the functionality was bundled into the new Internet Connect application, and that I should be checking out the associated dictionary - which I did. It's got everything I need, now it's only a matter of writing the script I want.