Entourage - compose a new message

Can anyone help me out with a quick command? I need whatever term Ent X uses for making a new mail message.

I have this:

	make new outgoing message at drafts folder

which makes a new message in the drafts folder (go figure), but I just want a new open message, no recipients, no subject … just the message.

Thank you, Thank you, Thank you

I’m a total noob in A’script but this one was easy!

Look in the dictionary of Entourage.
Browse around and look:

Class draft window: A window with an unsent message

So I try:

tell application "Microsoft Entourage"
	make new draft window	
end tell

Bingo! It works!

It’s even easier than I thought it would be!

Dammiit Dammit Dammit!

That does work.

I had

make new draft

and couldn’t see what I was missing.

You the man!

Now, can you tell me a more efficient way of giving that new message a subject?
Here’s what I have:

tell application "Microsoft Entourage"
	make new draft window
	tell window 1
			set subject to my (WhatImDoin)
		end try
	end tell
end tell

which works, but I’m curious if I could’ve been tighter with the code.

tell application "Microsoft Entourage"
	make new draft window
	set subject of window 1 to "hello"
end tell

“tell window” is usefull if you are going to do a lot of things with the window, (add email address, add message add attachment etc.) then it saves you “of window 1” on each line…

IMHO the try end try is only needed when you are not sure if it will work.

Like opening a file: you don’t know for sure if it is there; it might be deleted or moved.

In this case however:
You just created the mail window, so you are pretty darn sure it’s there, so try isn’t needed here.