On 12/31/01 12:37 AM, "Allen Watson" <[EMAIL PROTECTED]> wrote:

> However, this <does> work:
> 
> tell application "Microsoft Entourage"
>   activate
>   set x to source of (item 1 of (get current messages))
>   set the clipboard to x
> end tell
> 
> I can't explain why that should work, but I've found that it does.

Same thing as the preceding error, but I didn't test for source. This
property too needs to be evaluated by setting a variable to it (as you just
did) or by using the explicit 'get'. This will also work:

tell application "Microsoft Entourage"
    activate
    set the clipboard to (get source of (item 1 of (get current messages)))
end tell


> Incidentally, I was also trying to use the clipboard to pass styled text,
> and like you, found that I could not do anything like "set the clipboard to
> contents of theMsg". And if you pass the data through an AppleScript
> variable, you lose the styling. CopyPaste, alas, is not scriptable. So, I
> don't see any way, currently, to use a script to preserve styled text and
> copy it to FMP, although you can use the clipboard <manually> to do so.

Yes, it's because it depends on the Entourage implementation of 'selection'
in the Standard Suite, which can only be string, list or folder. In text
applications, 'selection' is usually defined as styled text, and both the
actual clipboard  as well as the osax 'set the clipboard' can handle styled
text just fine. It's the Entourage version of the class 'selection' that's
letting things down here.

Dan has said several times that he's not keen to implement the Text Suite,
and seems equally reluctant to access styled text or HTML. But by getting
the source, parsing it for just the HTML part, and putting that into a text
editor that can do HTML (BBEdit, probably?), then selecting the resulting
HTML as styled text, you could, I think, finally get the styled text. I'll
give it a try soon, except that BBEdit Lite doesn't have AppleScript - you
need the $60 full version. I think you can get a 30-day demo however. And
there may well be some other text editor which can do HTML as well. (Who
knows, maybe even Word, but not via thos route, I don't think.)
 
-- 
Paul Berkowitz


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to