Re: tiger problem with keychain scripting....
Re: tiger problem with keychain scripting....
- Subject: Re: tiger problem with keychain scripting....
- From: John Baltutis <email@hidden>
- Date: Wed, 27 Jul 2005 23:50:15 -0700
On 07/27/05, "John C. Welch" <email@hidden> wrote:
> On 7/27/05 14:44, "John Baltutis" <email@hidden> wrote:
>> See
>> <http://docs.info.apple.com/article.html?artnum=301858>,
>> <http://lists.apple.com/archives/Applescript-users/2005/Jun/msg00618.html>,
>> and
>> <http://discussions.info.apple.com/webx?email@hiddennsJStM.1@.68addd0b>.
>>
>> To preclude problems, explicitly launch Keychain Scripting and Keychain
>> Access, in that order, before calling for the password:
>>
>> tell application "Keychain Scripting" to launch
>> tell application "Keychain Access" to launch
>>
>> If you reverse the order, the error returns.
>>
>> Whether launching it multiples times poses any problems, do the experiment.
>
> There's nothing in that kbase article that mentions Keychain Access, which
> makes sense considering that as of 10.4.2, Keychain Access is not
> scriptable, and will really do you no good here from what I can tell.
>
> Confusing Keychain Scripting and Keychain Access is the path to madness I
> think.
No confusion here and no madness, either. I know that the kbase article
doesn't mention Keychain Access. However, the script I wrote wouldn't work
in Tiger without first launching Keychain Access, even though there wasn't
any problem in Panther. After launching it, I started getting the
"application isn't running" error and filed the appropriate bug report.
Engineering said to explicitly launch Keychain Scripting. I added it to the
script, but after launching Keychain Access. The error remained until I
switched the order. The kbase article is the result and is applicable to
all Keychain Scripting. My note points out that if you launch Keychain
Access in your script, do it after launchiing Keychain Scripting or the
error will return.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden