View Single Post
Neither of those are working for me, I have tried many ways to modify them to get them to work but no success.


Code:
property contextName : "Home"


tell application "OmniFocus"
	tell front document
		set contextID to id of item 1 of (complete contextName as context)
		return first context whose id is contextID
	end tell
end tell
end
Code:
on getContext("Home")
	tell application "OmniFocus"
		tell front document
			try
				first flattened context whose name contains "Home"
			on error
				(make new context with properties {name:"Home"})
			end try
		end tell
	end tell
end getContext
Sorry I am dumb as a nail. If you could spare the time, could you show an example of what you use on multiple selected actions that have no context and projects and you want to put them in context "Work : Online" (online being a context of work) and project "Research" in a Marketing folder.

I am not sure if you have to define the folders if there are multiple projects named "Research". Seems confusing to define since they can even be in the same folder with the same name.

Anyway just the context part would be helpful to me if the project part is too complicated.

Last edited by skillet; 2011-07-09 at 05:10 PM..