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