Keychain scripting...
Keychain scripting...
- Subject: Keychain scripting...
- From: David Crowe <email@hidden>
- Date: Fri, 14 May 2004 10:21:54 -0600
I use the following code to access the KeyChain:
tell application "Keychain Scripting"
set KeyList to every key of keychain KeychainName
repeat with aKey in KeyList
if name of aKey = PINKeychain then
set theSecuridPIN to (password of aKey)
exit repeat
end if
end repeat
end tell
I do a loop because I couldn't reliably pull out the right record by
name. PinKeychain is just a string. and "KeychainName" is just the
name of the keychain.
For example:
key of keychain "DavidCrowe" whose name contains "a"
returns the error:
Can't get key of keychain "DavidCrowe" whose name contains "a"
- David Crowe
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.