• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keychain Scripting question


  • Subject: Keychain Scripting question
  • From: Mason <email@hidden>
  • Date: Fri, 26 Mar 2010 09:00:12 -0700 (PDT)

Hey AppleScripters,

I have a script which uses numerous do shell script commands which
require administrator privileges.

I didn't want to get prompted for a password for this script so I created a
new keychain item and then call it from the script via the following:

tell application "Keychain Scripting"
set myScriptKey to first key of current keychain whose name is "scriptKey"
set pswd to password of myScriptKey
end tell


The above code works for retrieving the proper credentials and I never
have to enter in my password (which is what I want); however, I am always 
prompted by a pop-up which states:

applet is trying to obtain the password for "scriptKey".
Keychain wants to use your confidential information stored
in "scriptKey" in your keychain"

Do you want to allow access to this item?

and then there is an Always Allow button, a Deny button, and an Allow button.

If I choose Always Allow it does not stick and I am still prompted
again on the next run of the script.

I did go to the keychain item and set access via the
Access Control tab but regardless of what I do there it still
does not stick and I still get prompted.

Does anyone know how I can set this once so that it sticks and so that
I do not get prompted ever again?

BTW, I am running 10.6.2 with all the latest updates.

Thanks in advance for any help!

- Mason Rove
 _______________________________________________
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 question
      • From: Deivy Petrescu <email@hidden>
  • Prev by Date: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Next by Date: Re: old script fails AND BUG in Smile 3.5.2 (build 609)
  • Previous by thread: Re: Back and forth between Posix and HFS paths
  • Next by thread: Re: Keychain Scripting question
  • Index(es):
    • Date
    • Thread