Re: Getting a string on the clipboard in OE
Re: Getting a string on the clipboard in OE
- Subject: Re: Getting a string on the clipboard in OE
- From: Jan Pieter Kunst <email@hidden>
- Date: Sat, 28 Apr 2001 13:08:01 +0200
Rob Jorgensen (email@hidden) schreef op 28-04-2001 11:49 :
>
On 4/28/01, Jan Pieter Kunst commented:
>
> I managed to script Outlook Express to get the source of the selected
>
> message in a variable. Now I want to "copy" this string to the clipboard and
>
> switch to another application, and then paste (Command-V) the string by
>
> hand.
>
>
Depending on the version of AppleScript in use, this might work:
>
>
set the clipboard to x -- doesn't require a tell statement
>
tell application "whatever" to activate
It's version 1.5.5, the version that comes with MacOS 9.1.
"set the clipboard to x" doesn't work: it gives an error dialog box that
says more or less (translating from the Dutch): "Outlook Express received an
error: certain data could not be read".
In both BBEdit and the Finder, there is a verb (that's the correct term,
right?) "copy" that copies something to the clipboard. I couldn't find
"copy" in the Outlook Express dictionary, so if "copy" is a standard way to
get something on the clipboard, then maybe it's just not possible in OE.
JP