Re: weird clipboard behaviour
Re: weird clipboard behaviour
- Subject: Re: weird clipboard behaviour
- From: Andy Wylie <email@hidden>
- Date: Fri, 16 Nov 2001 15:40:08 +1300
on 16/11/01 5:28 AM, Jon Pugh at email@hidden wrote:
>
At 5:13 PM -0800 11/14/2001, Christopher Nebel wrote:
>
> The workaround is to strip the style info from "the clipboard"'s result
>
> somehow.
>
>
The simplest technique for that is simply "the clipboard as string".
>
>
> It has been in AppleScript 1.7, as long as the styled text in question is
>
> well-formed, as opposed to the weird mutant crap "the clipboard" returns in
>
> some cases. The root bug is in "the clipboard" (and yes, it's still Jon's
>
> code); a couple other parts of AppleScript are insufficiently resilient to
>
> cope.
>
>
I would like to know more about your analysis. Looking at the code, I see
>
that I am using AppleScript's record to styled text coercion to create the
>
"weird mutant crap" that you are complaining about. I'm not entirely sure how
>
this is wrong, unless AppleScript is the root cause.
>
'MT Set Clipboard' from 'Tanaka's extra' OSAX behaves the same however 'MT
Read Clipboard' works.
_____________________________ Andy