• 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: Nigel Garvey <email@hidden>
  • Date: Fri, 23 Jan 2004 20:57:42 +0000

Walter Ian Kaye wrote on Fri, 23 Jan 2004 04:28:34 -0800:

>With the old Programmer's Tool, I could easily combine a record
>containing <<ktxt>> and <<ksty>> back into a <<STXT>>. On OS X, I
>cannot find any way to do that, despite the ease of going in the
>opposite direction.
>
>Any answers?

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

Usual warning about the chevrons.

NG
_______________________________________________
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: Emmanuel <email@hidden>
  • Prev by Date: Re: Trouble with simple Find in FMP data base
  • Next by Date: Re: Inheritance
  • 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