Re: Keychain and text returned
Re: Keychain and text returned
- Subject: Re: Keychain and text returned
- From: kai <email@hidden>
- Date: Wed, 30 Mar 2005 00:00:20 +0100
On Wed, 30 Mar 2005 00:19:13 +1000, John Cochrane wrote:
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.
So would I be, John. FWIW, both versions actually work here.
---
kai
_______________________________________________
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