• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Keychain scripting...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Keychain scripting...
      • From: Paul Berkowitz <email@hidden>
    • Re: Keychain scripting... extract names from list
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: Long filenames
  • Next by Date: Re: panther weirdness
  • Previous by thread: Applescript Error: The variable result is not defined. (-2753)
  • Next by thread: Re: Keychain scripting... extract names from list
  • Index(es):
    • Date
    • Thread