Re: text appears, but styling is gone
Re: text appears, but styling is gone
- Subject: Re: text appears, but styling is gone
- From: has <email@hidden>
- Date: Sun, 12 Jan 2003 13:05:11 +0000
Philippe GRUCHET wrote:
> BTW, is it just me, or do Safari, TextEdit, etc. lose style
information when you get the text of a document?
tell application "Safari" to get text of document 1
tell application "TextEdit" to set text of document 1 to result
--> text appears, but styling is gone
Yes, styles are ignored, even with Jon's Commands.osax:
tell app "Safari" to text of document 1 as styled text
just returns as plain text.
But not unstyled text: what comes back is styled Unicode text, but
the style is plain (and always the same). Which doesn't make sense to
me. If it's by design, I'd like to know why; if not, I'd assume it's
a bug of some sort.
(This stuff might be old news to everyone else, so forgive me if I
seem a bit slow. But I've never worked much with styled text - and
this is the first time I've done it in OSX - and I'm thoroughly
confused and frustrated by it. Any help would be much appreciated.)
Thanks,
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of AppleScripts
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.