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 12:44:25 -0700
On 07/27/05, David Crowe <email@hidden> wrote:
>
> I wasn't following the KeyChain scripting problem discussion too
> closely at the time, but now I'm on Tiger.
>
> Thanks to the archives I tracked down the Apple problem report,
> which includes the following snippet of code:
>
> tell application "Finder"
> open application file ((startup disk as string) &
> "System:Library:ScriptingAdditions:Keychain Scripting") as alias
> end tell
>
> They go to some effort to avoid executing this if the process is
> already running. But it doesn't seem to do any harm to execute it
> multiple times to me.
>
> Does anyone know a reason why this shouldn't be executed whenever a
> script is run that will be accessing the keychain?
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.
_______________________________________________
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