• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Keychain and text returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Keychain and text returned
      • From: Neil Faiman <email@hidden>
  • Prev by Date: Re: Print current record from FileMaker?
  • Next by Date: Syntax for Finder 'exists' command?
  • Previous by thread: Re: Showing a Package's Contents
  • Next by thread: Re: Keychain and text returned
  • Index(es):
    • Date
    • Thread