|
|
Set iChat status according to physical location
At first, I couldn't get Jon's applescript to work on my iBook (dual USB). The problem seemed to be that it could not get the base station name. The command each script is using to determine the base station is different, with Jon's using Just out of curiosity, what version of Mac OS are you running and what do you get when you run real 0m0.124s user 0m0.040s sys 0m0.030swhereas system_profiler gotreal 0m0.801s user 0m0.160s sys 0m0.090sClearly this is not a real performance issue, but interesting to note. One other thing to mention is that my script would work fine as a cron job executed by osascript rather than as a a stay-open application. The latter just requires more UNIX knowhow.---
ioreg output on my system
I am using 10.3.3, an apple standard airport(.b) card, and the original Airport basestation.
I don't know a lot about ioreg, but I get the exact same output when I type ioreg -n AirPortPCI -S -w 0 as when I use ioreg -S -w 0. Further, neither of those outputs, nor the output from ioreg -w 0 contain the text "ssid" or "AirPortPCI", which I imagine they do for you. Perhaps it matters what sort of wireless basestation we are connecting to? or something I have misconfigured? BTW,thanks for sharing your script, as I am really enjoying it.
AirPortPCI vs. AirPortDriver
On my dual-usb iBook with an (unextreme) AirPort card, there is nothing for AirPortPCI, but there is data for AirPortDriver (you can get the SSID with ioreg -n AirPortDriver|grep APCurrentSSID|cut -d '"' -f 4).
I'd guess you've got 802.11g, or a non-apple 802.11b card ?
Set iChat status according to physical location
ahh hah. changing the set ssid line as per earlier comment |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.05 seconds |
|