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

scripting keychain access - login keychain


  • Subject: scripting keychain access - login keychain
  • From: travis n <email@hidden>
  • Date: Tue, 11 May 2004 23:27:11 -0500

Greetings,

I have searched the archives, but have not had success finding this (that was tough in itself, the search is rough).

I want to be able to get a user's .Mac username from a script, but my attempts to access the login.keychain in 10.3.x always return an empty set:

tell application "Keychain Scripting"
set defaultKeychain to current keychain
set uName to keys of defaultKeychain
end tell

the event log reports:

tell application "Keychain Scripting"
get current keychain
current application
get current keychain
keychain "login.keychain"
get every key of keychain "login.keychain"
{}
end tell

This same script works if I point it to another keychain...

Any tips greatly appreciated.

-travis n
____________________

He no longer dreamed of storms, nor of women, nor of great occurrences, nor of great fish, nor fights, nor contests of strength, nor of his wife. He only dreamed of places now and of the lions on the beach.

-- Hemingway's Old Man and The Sea
_______________________________________________
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: scripting keychain access - login keychain
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: New Folder if it doesn't exist
  • Next by Date: Re: Test, critique and ridicule this script!
  • Previous by thread: Re: New Folder if it doesn't exist -- Ignore
  • Next by thread: Re: scripting keychain access - login keychain
  • Index(es):
    • Date
    • Thread