Re: As Text Work-Around Broken
Re: As Text Work-Around Broken
- Subject: Re: As Text Work-Around Broken
- From: "Nigel Garvey" <email@hidden>
- Date: Fri, 13 Jan 2006 20:51:08 +0000
Jason Bourque wrote on Fri, 13 Jan 2006 13:45:01 -0500:
>I have used this for some time but it seems to be broken..
>
>For unicode text this should work. Any ideas?
>
>
>
>try
> --corece Unicode or other text to styled string to plain text
> set vStringAsText to (((vString as string) as record)'s «class
>ktxt»)
>
> on error
> set vStringAsText to vString
> end try
>
> return vStringAsText
That still works here, Jason. (OS 10.4.3, AS 1.10.3) A shorter version is:
set {text:vStringAsText} to (vString as string)
return vStringAsText
Neither can produce plain-text versions of Unicode only characters, though.
NG
_______________________________________________
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