Keychain Scripting
Keychain Scripting
- Subject: Keychain Scripting
- From: LuKreme <email@hidden>
- Date: Wed, 23 May 2007 14:10:10 -0600
I have the barebones of a script:
set shortName to do shell script "/usr/bin/id -un"
tell application "Keychain Scripting"
set myKeyChain to keychain shortName
set myList to every Internet key of myKeyChain
repeat with x from 1 to (length of myList)
set myKey to item x of myList
set myPass to password of myKey --grab the password
set myID to the account of myKey --grab the userid
end repeat
end tell
I want to build on this script to have an easyway to dump the
contents of a keychain, import new info into the keychain, and access
the keychain via the command line when logged in remotely.
The trouble is that every time I try to do anything, I have to grant
permission to script editor for EVERY SINGLE KEY. I have 550
password keys in my keychain. Even if I only have to authorize ONCE
it is a huge chore, and I know I will have to do it at LEAST twice
(once for script editor and once for the final script). Not to
mention, how will I authorize it from the CLI?
Am I missing something? Is there some way to embed the authorization
into the script so that I don't get asked this all the time?
I did search for "keychain" in every message on this list from
January one and found nothing.
--
You know, Calculus is sort of like measles. Once you've had it, you
probably won't get it again, and you're glad of it. -- W. Carr
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden