Re: get words of text fails
Re: get words of text fails
- Subject: Re: get words of text fails
- From: Michelle Steiner <email@hidden>
- Date: Thu, 4 Nov 2004 15:15:41 -0700
On Nov 4, 2004, at 2:40 PM, Malcolm Fitzgerald wrote:
I'm getting an error running this code.
set {a, b} to words of "102004-112004"
--> {"102004", "112004"}
set x to words of "102004-112004"
--> {"102004", "112004"}
display dialog "What logs shall we analyse?" default answer
"102004-112004"
set x to text returned of the result
set {a, b} to words of x
--> Can't get item 2 of {"102004"}
display dialog "What logs shall we analyse?" default answer
"102004-112004" -- ie, mmyyyy-mmyyyy.
set x to text returned of the result
words of x
--> {"102004"}
display dialog "What logs shall we analyse?" default answer
"102004-112004" -- ie, mmyyyy-mmyyyy.
class of text returned of the result
--> Unicode text
So, the problem apparently lied with the fact that the text returned of
a dialog is unicode text; we've seen other problems resulting from this
as well.
-- Michelle
--
Windows was always a mystery to me; the biggest mystery being "Why does
anyone want to use this?"
_______________________________________________
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