• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: As Text Work-Around Broken
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: opening the folders in window 1
  • Next by Date: Re: Line feed, paragraph or whatever in item of list
  • Previous by thread: Re: Good news/bad news?
  • Next by thread: Re: As Text Work-Around Broken
  • Index(es):
    • Date
    • Thread