Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
- Subject: Re: Keychain Scripting (Was Re: Keeping a volume Mounted)
- From: Sander Tekelenburg <email@hidden>
- Date: Sat, 10 Feb 2001 19:01:45 +0100
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 09:41 -0500 UTC, on 10/02/2001, Rob Jorgensen wrote:
>
[...] I created a script to unlock my keychain. When run
>
from Script Debugger or Scripter, it works. When saved as an
>
application, it works. When saved as run-only (my feeble attempt to
>
hide the password anyway), it breaks with the following error:
>
>
Could not run the script "Unlock KC" because the script is not
>
editable (it was saved as run-only.). -1756
't works fine for me with both editable and run-only applets, as from Script
Editor. The only difference being that I'm doing this under OS 9.0.4 (with AS
1.4.3) and that I specify _which_ keychain:
tell application "Keychain Scripting"
unlock keychain "some keychain" with password "********"
quit
end tell
Then again, I don't see why specifying which keychain would work in an
editable applet but not in a run-only...
>
The other result of running the run-only version is that the Keychain
>
Scripting app launches but is left running when the script fails.
You're telling an app to do something, and thus are launching it. (How else
can it do something?) You need to explicitly tell it to quit when it's done
(if you do want to quit it). I don't see why that would be different with
editable applets, run-only ones, or running it from Script Editor. Sounds
like either an OS 9.1 bug, or you're confused ;)
HTH
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <
http://www.pgp.com>
iQA/AwUBOoWCBOsywKfXgqKdEQKNbACePCueRKNCsgX2jeRMu+MoklKfYGEAmgKN
7EIaJxyk+mKHIMDw9Y194q/N
=3CoM
-----END PGP SIGNATURE-----
--
Sander Tekelenburg, <
mailto:email@hidden>
Web site at <
http://www.euronet.nl/~tekelenb/>
Do not seek to follow in the footsteps of the wise. Seek what they sought.