Applescript to create new message creates acopy in the Draft folder?

B

Biju_Pillai

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Email Client: Exchange

Greetings

I using the following script to create a new message

tell application "Microsoft Entourage"
activate

-- create a new message with the information from the current message
set draftMsg to make new incoming message with properties {subject:"Hi", content:"Testing"}

-- open the new message we just created
open draftMsg
end tell

A copy of the message is created in the MyComputer->Drafts folder. Is it possible to avoid this creation as it leave behind a copy?

Thanks in advance
Biju
 
E

Ed Kimball

Version: 2008
Operating System: Mac OS X 10.5 (Leopard)
Processor: Intel
Email Client: Exchange

Greetings

I using the following script to create a new message

tell application "Microsoft Entourage"
activate

-- create a new message with the information from the current message
set draftMsg to make new incoming message with properties
{subject:"Hi", content:"Testing"}

-- open the new message we just created
open draftMsg
end tell

A copy of the message is created in the MyComputer->Drafts folder. Is it
possible to avoid this creation as it leave behind a copy?

Thanks in advance
Biju

I haven't used much scripting in Entourage, but have you tried making a new
"outgoing message" or maybe even just "message" instead of "incoming
message"?
 
D

Diane Ross

I using the following script to create a new message

Your script uses draft, edit the script using this format:


tell application "Microsoft Entourage"
set newMessage to make new outgoing message with properties {BCC
recipients:"(e-mail address removed)", content:"This is body text." & return & return
& "Thank you." & return, subject:"A new message for you"}
open newMessage
end tell

Hope this helps!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top