Keychain Scripting (Was Re: Keeping a volume Mounted)
Keychain Scripting (Was Re: Keeping a volume Mounted)
- Subject: Keychain Scripting (Was Re: Keeping a volume Mounted)
- From: Rob Jorgensen <email@hidden>
- Date: Sat, 10 Feb 2001 09:41:30 -0500
On 2/10/01, Sander Tekelenburg commented on "Re: Keeping a volume Mounted":
Note the possible security problems with storing a passphrase in a script...
On a somewhat related note...
I'm not concerned with security on my machine since I'm the only
user, but I still use keychains because they are convenient.
With that in mind, 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
The other result of running the run-only version is that the Keychain
Scripting app launches but is left running when the script fails.
When running the script under all of the other conditions, Keychain
Scripting does its deed and quits (the desired and anticipated
behavior).
Here's the script:
tell application "Keychain Scripting"
unlock with password "myPW"
end tell
Any ideas why this breaks? I don't see any type of info coming back
into the script as a result, but it seems like something along those
lines is going on.
This isn't a big deal for me because I have something which unlocks
the keychain automatically anyway. I was just mucking around and this
is the result. <shrug>
FYI: OS 9.1, AppleScript 1.5.5, Keychain Scripting 2.2 (part of OS
9.1), latest versions of the editors, all security extensions enabled
Later,
Rob Jorgensen
Ohio, USA