Great! Thanks CakeFace.
I saved it as a script to ~/Library/Application 
Support/Quicksilver/Actions/ and made a trigger with ctrl+A.

One tip. You can flag the trigger to Show Window in order to have feedback 
when it’s running the script. You can customize the AppleScript icon 
showing by changing it in Get Info with ~/Library/Application 
Support/Quicksilver/PlugIns/com.blacktree.Quicksilver.QSAirPortPlugIn.A8.qsplugin/Contents/Resources/AirPort.icns.

If no one already had I’d like to add a feature request for Growl Support 
for Triggers (I think it’s more coherent).

On Monday, April 23, 2012 5:52:07 AM UTC+2, CakeFace wrote:
>
> try saving the following applescript as an application, and then making a 
> trigger to launch it.
>
>
> --
>> -- Toggle Airport Power On and Off
>> --
>> if (offset of "On" in (do shell script "networksetup -getairportpower 
>> en1")) > 0 then
>>     do shell script "networksetup -setairportpower en1 off"
>> else
>>     do shell script "networksetup -setairportpower en1 on"
>> end if
>>
>
> works for me on snow leopard. 
>
>

Reply via email to