Re: coercing styled text to text
Re: coercing styled text to text
- Subject: Re: coercing styled text to text
- From: email@hidden
- Date: Sat, 12 Jan 2002 13:57:58 EST
Try this:
set plainText to styledText as unicode text as string
Jeff Baumann
email@hidden
www.linkedresources.com
In a message dated 1/12/02 12:12:35 AM, Ben Robbins wrote:
>
I'm scripting Fetch 4.0.1 in OS X 10.1.2. Fetch has a problem
>
receiving information as styled text and I get styled text when I
>
make certain calls to the finder, so I'm trying to coerce it to plain
>
text.
>
>
For example:
>
>
tell application "Finder"
>
copy name of vFolder to vPath
>
end tell
>
>
--results in styled text
>
>
The Fetch folks recommended adding "as text", but it doesn't seem to work.
>
>
vPath as text
>
>
-- still styled text
>
>
I've tried getting characters from the String, but I still get Styled text.
>
>
Any ideas how to coerce styled text to plain text?
>
>
Thanks
>
_____________________________________________________________________
>
ActiveMac Consulting http://www.activemac.com/
>
Seattle, WA email@hidden
>
(206) 297-8834