On 12/30/01 10:52 PM, "Dan Frakes" <[EMAIL PROTECTED]> wrote:
> Some time ago, someone (I think it was Paul or Allen) provided a script that
> supposedly pasted the source of a message to the clipboard (entire source,
> including headers). I copied it as:
>
> tell application "Microsoft Entourage"
> set the clipboard to source of (item 1 of current messages)
> end tell
>
> However, this script doesn't work for me. I'm not a script guru, so I have
> no idea why not ;) Any suggestions?
I think it must have been Allen - I never use the clipboard, but use a
variable instead. More about that below. I see you're in Entourage 2001, so
this might work if you do the following alteration:
tell application "Microsoft Entourage"
activate
set the clipboard to source of (item 1 of (get current messages))
end tell
It needs the 'get' to work.
Presumably you're running this from the Entourage script menu so Entourage
will already be 'activated' anyway (in front), so 'activate' may not be
absolutely necessary, but you're always supposed to use it with 'set the
clipboard'.
Just this morning, I was trying out 'the clipboard' as a possible way of
getting styled text from selected text in open HTML messages, as perhaps the
only way to do it, for the person wanting styled text passed to FileMaker.
(In applescript, if you set a regular variable to the text you'll just get
plain text.) But I was finding that in OS X, any app I tried - Entourage
itself, TextEdit, Tex-Edit Plus, couldn't then transcribe the contents of
what was in 'the clipboard', at least not by script. You _should_ be OK in
OS 8/9.
--
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/>