2 Replies Latest reply: May 11, 2012 2:49 PM by twtwtw
Rick Jiang Level 1 (0 points)

In my office,we have three Wi-Fi connection A,B,C.I had connected them in store the password in keychain.For now,i want to create a applescript to auto connect them by one click.Like i click application A,then it will help me to connect to A Wi-Fi and so on.

But,after i searched many knowledge from web,the code maybe not work on lion.


tell application "Keychain Script"

  set serverKey to frist key of current keychain whose name is "EUCMAC"

  set acct to account of serverKey

  set pswd to password of serverKey

end tell


Could somebody help me on this case?




Rick Jiang

iMac, Mac OS X (10.7.3)