Re: styled text to record, ok. But record to styled text?
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.