Re: (standard additions) read file as styled text
Re: (standard additions) read file as styled text
- Subject: Re: (standard additions) read file as styled text
- From: Brennan Young <email@hidden>
- Date: Thu, 26 Apr 2001 17:25:54 +0200
- Organization: Magic Lantern
Christopher Nebel wrote:
>
If you can manage to get both globs of data, I'm pretty sure
>
Programmer's Tool can combine them in the right way, but I don't know
>
the exact incantation. It's also possible, if somewhat circuitous, to
>
do it in straight AppleScript by running the data through the clipboard,
>
like this:
>
>
set x to +data
>
styl000400000000000C000900150000000C00000000000000000005000C000900150100000C00000000000000000009000C000900150000000C0000000000000000000A000C000900150200000C000000000000;
>
set y to "This that those"
>
set the clipboard to {styled Clipboard text:x, string:y}
>
get the clipboard
>
--> "This that those", with "that" bold and "those" italic.
That's terrific Chris, thanks! I can really use this!
Funny to see styled text in 'the result' window!
--
_____________
Brennan