opensubscriber
   Find in this group all groups
 
Unknown more information…

a : applescript-users@lists.apple.com 14 January 2006 • 4:51AM -0500

Re: As Text Work-Around Broken
by Nigel Garvey

REPLY TO AUTHOR
 
REPLY TO GROUP




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      (Applescript-users@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.