View Single Post
I am wanting to add an Entourage message to OmniFocus. I have figured this out, thanks to this forum. I am using this code:

Code:
tell application "Microsoft Entourage"
	
	-- get the currently selected message or messages
	set selectedMessages to current messages
	
	repeat with theMessage in selectedMessages
		
		-- parse the email(s)
		set theName to subject of theMessage
		set theContent to content of theMessage
		
		
		tell application "OmniFocus"
			set theContext to context "Waiting" of default document
			set theTask to theName
			set theNote to theContent
			
			tell default document to make new inbox task with properties {name:theTask, note:theContent, context:theContext}
		end tell
		
	end repeat
end tell
However, I alo want to assign a specific project to the new task. How can I do that? I have searched the forum but can't find an answer.

Is there somewhere I can find complete documentation for OmniFocus' AppleScript interface?

Thanks.