Re: Keychain Scripting question
Re: Keychain Scripting question
- Subject: Re: Keychain Scripting question
- From: John Baltutis <email@hidden>
- Date: Fri, 26 Mar 2010 16:59:47 -0700
On 3/26/10, Mason <email@hidden> wrote:
>
> 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 neverhave 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.
AFAIK, it's not possible after you quit the script. And, you can't code
responses that will click any of those three buttons.
_______________________________________________
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