• 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
Re: scripting keychain access - login keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting keychain access - login keychain


  • Subject: Re: scripting keychain access - login keychain
  • From: John Stewart <email@hidden>
  • Date: Wed, 12 May 2004 16:53:23 -0400

On 05/12/04 at -0500 travis n said this

>Thanks for your reply Gnarlie.
>
>Indeed, I have seen you posts here and had used your script as somewhat
>of a reference.
>
>......
> tell application "Keychain Scripting"
> set theKeychain to keychain theUserID
> set theKeys to every AppleShare key in theKeychain
> end tell
>......
>
>in your case, you seem to be choosing the keychain that is named for
>the user, this is not the case for the current keychain in 10.3.x which
>is default named login.keychain. I used your snippet above with that
>modification and got the error I spoke of. However, if I use your
>snippet to query against another keychain, it works great... ?
>
>thanks.


OMM the folloowing script returns 2 items neither of which is named login.keychain. I'm using OS X
10.3.3.

tell application "Keychain Scripting" to every keychain

--> {keychain "john" of application "Keychain Scripting", keychain "System.keychain" of application
"Keychain Scripting"}

Could it be you are using the wrong keychain name in your tests?

Since I never directly supplied a name for either of these keychains they could both be considered
"default" with keychain "john" being the current keychain.

JBS
--
If Barbie is so popular, why do you have to buy her friends?
_______________________________________________
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.


References: 
 >Re: scripting keychain access - login keychain (From: travis n <email@hidden>)

  • Prev by Date: Tex-Edit Plus (was: TextEdit)
  • Next by Date: Re: trojan horse for Mac os x - Of course it Microsoft related
  • Previous by thread: Re: scripting keychain access - login keychain
  • Next by thread: Re: scripting keychain access - login keychain
  • Index(es):
    • Date
    • Thread