• 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: 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
  • Follow-Ups:
    • Re: Keychain Scripting
      • From: Philip Aker <email@hidden>
    • Re: Keychain Scripting
      • From: "John C. Welch" <email@hidden>
  • Prev by Date: network file permission error
  • Next by Date: Re: Keychain Scripting
  • Previous by thread: network file permission error
  • Next by thread: Re: Keychain Scripting
  • Index(es):
    • Date
    • Thread