Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Keychain and text returned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain and text returned




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




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.