The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
AppleScript Documentation Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outdated documentation natkin OmniFocus 1 for Mac 6 2012-06-08 11:24 AM
OmniFocus PDF documentation jonwhite OmniFocus for iPad 2 2010-09-15 01:37 PM
AppleScript-Omnigraffle Documentation? Daria OmniGraffle General 2 2009-07-22 11:18 AM
Where is the documentation? revheck OmniFocus 1 for Mac 10 2008-01-08 03:57 PM
Documentation bronxbomber92 Omni Frameworks 1 2007-01-14 02:13 PM


All times are GMT -8. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.