• 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: styled text to record, ok. But record to styled text?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: styled text to record, ok. But record to styled text?


  • Subject: Re: styled text to record, ok. But record to styled text?
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 23 Jan 2004 17:47:33 -0800

At 11:38p +0100 01/23/2004, Emmanuel didst inscribe upon an electronic papyrus:

At 8:57 PM +0000 23/01/04, Nigel Garvey wrote:
>Is this any good?
>
> set a to "set fred to the clipboard"
> set b to <<data
>styl000500000000000D000A00030100000AEFEF1F1F1D1D00000003000D000A00030000000
>A00000000000000000009000D000A00030100000AEFEF1F1F1D1D0000000B000D000A000300
>00000A0000000000000000000C000D000A00030000000A2F2F8B8B2020>>
>
> set the clipboard to {<<class ktxt>>:a, <<class ksty>>:b}
> the clipboard

It's interesting, but...

>Usual warning about the chevrons.

.... and about the size limit

...if there's a size limit, I can't use it. Because I don't know in advance how long the styled text string might be.

Christopher Stone sent me an email illustrating that a *list* would work, although it requires special handling due to returning {styledtext} upon reconversion (i.e., it becomes a 1-item list: {text,styl} -> {stxt}). But since writing as list is special-cased anyway, then un-listing afterwards just goes along with that.
Of course now I'm wondering which other seemingly-basic data types would need similar special casing...


(and usual grins for the hilarious error message associated).

Emmanuel

Whassat?


-boo
_______________________________________________
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: styled text to record, ok. But record to styled text?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: styled text to record, ok. But record to styled text? (From: Nigel Garvey <email@hidden>)
 >Re: styled text to record, ok. But record to styled text? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Trouble with simple Find in FMP data base
  • Next by Date: Re: Error Number: -10006 H-E-L-L-L-P!
  • Previous by thread: Re: styled text to record, ok. But record to styled text?
  • Next by thread: Re: styled text to record, ok. But record to styled text?
  • Index(es):
    • Date
    • Thread