Hi,
I'm struggling now already for hours with something I thought should be
really easy:
How do I copy the body text of a message that is selected in PowerMail's
message browser to the system's clipboard?
This does not work:
tell application "PowerMail"
activate
set msg to the first message of current messages
set theText to the content of msg
set the clipboard to (theText as string)
end tell
It issues an error of "The variable msg is not defined."
I then tried
tell application "PowerMail"
activate
copy (content of the first message of current messages)
end tell
which does not yield an error, but doesn't change the clipboard contents.
I then tried
tell application "PowerMail"
activate
set the clipboard to (content of the first message of current messages)
as text
end tell
which changes the clipboard, but the Finder clipboard window display says
"Contents of clipboard: unknown" and pasting it into a text editor yields
nothing.
How do I do it?
Thanks, Christian