Keychain and text returned
Keychain and text returned
- Subject: Keychain and text returned
- From: John Cochrane <email@hidden>
- Date: Wed, 30 Mar 2005 00:19:13 +1000
In my Keychain I have a key named "server"
The following script successfully finds the key:
set keyName to "server"
tell application "Keychain Scripting"
tell the current keychain
set theKey to (key 1 whose name is keyName)
end tell
end tell
However surprisingly when the string "server" is returned from a dialog
then the script fails.
set keyName to the text returned of (display dialog "What is the name
of the key?" default answer "server" buttons {"OK"})
tell application "Keychain Scripting"
tell the current keychain
set theKey to (key 1 whose name is keyName)
end tell
end tell
-->Can't get key 1 of current keychain whose name = \"server\"
I'm puzzled.
John Cochrane
_______________________________________________
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