• 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
Re: Keychain and text returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain and text returned


  • Subject: Re: Keychain and text returned
  • From: kai <email@hidden>
  • Date: Wed, 30 Mar 2005 03:46:25 +0100


On Tue, 29 Mar 2005 19:27:09 -0500, Neil Faiman wrote:

I was able to reproduce the same problem.

The Keychain Scripting dictionary says that the "name" property of a key has type "string", and "display dialog" returns a value of type "Unicode text"; this is apparently the problem.

Ah - that explains why it works for me, Neil. I'm still in Jaguar, where display dialog returns text of class 'string'. I wasn't aware that this had changed in Panther (or perhaps I'd forgotten) - but that would certainly explain John's problem.


It should therefore be possible to simply roll the plain text coercion together with original statement:

set {text:keyName} to text returned of (display dialog "What is the name of the key?" default answer "server" buttons {"OK"}) as text

---
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


  • Prev by Date: Re: Showing a Package's Contents
  • Next by Date: Re: Showing a Package's Contents
  • Previous by thread: Re: Keychain and text returned
  • Next by thread: Re: Keychain and text returned
  • Index(es):
    • Date
    • Thread