|
|
Why not direct?
I still don't understand why there isn't a more direct way to turn airport on/off. Should be something that is included without need UI scripting. Something like:
Why not direct?
set admin_password to "YourPassword"
Why not direct?
BTW, the only reason the password is separate is because I pulled these lines from a larger script where the password is used many times. You could get the password from a dialog box up front or just have the script prompt you if you want.
Why not direct?
I think in 10.6, you need to name the network interface when you use networksetup.
(And, if you are not logged in as an admin-capable account, you can also add the user name):
do shell script "sudo networksetup -setairportpower AirPort off" user name admin_username password admin_password with administrator privileges |
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.09 seconds |
|