|
|
Connect to servers with Applescript using Keychain
You can also do the same thing with the keychain directly via Keychain Scripting, and the "mount volume" command. This allows you not need an alias. The big caveat is that in Panther, if you have SSL certificates in your keychain, Keychain Scripting will think that keychain is empty, and yes, there's a bug filed on it.
Connect to servers with Applescript using Keychain
Can you post an example of how to do this please?
Connect to servers with Applescript using Keychain
Let's say you have a password for the AppleShare server "Foobar" saved in your keychain. You can look it up like this:
tell application "Keychain Scripting" to get password of first AppleShare key of current keychain whose server is "Foobar"
Maybe you have more than one account on "Foobar"? Maybe more than one volume or machine? No problem, just narrow your search until you find the one you want: and so on... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks 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 |
|