Re: weird clipboard behaviour
Re: weird clipboard behaviour
- Subject: Re: weird clipboard behaviour
- From: Jon Pugh <email@hidden>
- Date: Thu, 15 Nov 2001 08:28:27 -0800
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.
Jon