How to Set Flag for Entourage Message

I want to flag an Entourage message in Entourage 2008. I tried this:

tell application “Microsoft Entourage”
set currMsgs to (current messages)
set flagged of currMsgs to true
end tell

However, I am getting an error. Obviously, I have the wrong syntax. Does someone know how to do this?

Model: MacBook Pro 2.4 GHz
AppleScript: 2.0
Browser: Safari 523.10.6
Operating System: Mac OS X (10.5)

Hi,

it doesn’t work with Entourage 2004 either.
But it works with a repeat loop


tell application "Microsoft Entourage"
	set currMsgs to (current messages)
	repeat with oneMessage in currMsgs
		set flagged of oneMessage to true
	end repeat
end tell

Thanks, Stefan. That did it!

Model: MacBook Pro 2.4 GHz
AppleScript: 2.0
Browser: Safari 523.10.6
Operating System: Mac OS X (10.5)