Getting a string on the clipboard in OE
Getting a string on the clipboard in OE
- Subject: Getting a string on the clipboard in OE
- From: Jan Pieter Kunst <email@hidden>
- Date: Sat, 28 Apr 2001 10:03:54 +0200
Hello all,
I'm just beginning to play around with Applescript so forgive me if this is
a stupid question.
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.
The only way I could find to accomplish this was to pass the variable ("x")
to BBEdit, like this:
tell application "BBEdit 6.1.1"
activate
make new text window with properties {contents:x}
copy selection
close text window 1 saving no
end tell
and then use Applescript to activate another app, and paste by hand.
Can I somehow change the clipboard from within Outlook Express and leave out
the BBEdit step?
Thanks,
Jan Pieter Kunst.-