• 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: text appears, but styling is gone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: text appears, but styling is gone
      • From: Paul Skinner <email@hidden>
  • Prev by Date: RE: Forcing 'tell app' to use carbon, rather than classic app
  • Next by Date: Re: text appears, but styling is gone
  • Previous by thread: text appears, but styling is gone
  • Next by thread: Re: text appears, but styling is gone
  • Index(es):
    • Date
    • Thread