emailer script question....
emailer script question....
- Subject: emailer script question....
- From: "michael s. roels" <email@hidden>
- Date: Wed, 06 Dec 2000 12:59:51 -0600
i have written a script for emailer to create a new mail message, address
it, paste the contents of the clipboard in the body of the message, and send
the message. everything works as planned as long as i do not try to paste
from the clipboard. i get an error that states "claris emailer got an error:
this command is not available while the application is in the background"
i get this error while running the script in script editor and as a classic
applet.
can someone please help? i know this has to be something small that i am
overlooking.
thanks in advance for any help!
michael
______________________________
(the "{" and "}" and everything in between them are all on one line. it is
wrapping in this email.)
START OF SCRIPT
tell application "Finder" to launch "claris emailer"
tell application "Claris Emailer"
set bodyvar to clipboard --"test message"
set addrVar to "email@hidden"
set addrNameVar to "me"
set subjectvar to "re: "
make new outgoing message with properties ,
{subject:subjectvar, content:bodyvar, scheduled:true,
recipient:{{address:{address:addrVar, display name:addrNameVar}, recipient
type:to recipient}}}
connect to "America Online" with properties and sending
end tell
END OF SCRIPT