View Single Post
You might get a more informed response in the OmniPlan Extras or OmniPlan forums, but it's possible that code of the following pattern may be relevant to part of your question

Code:
tell application id "com.omnigroup.OmniPlan"
	set oDoc to front document
	set lstFredTasks to my PersonTasks(oDoc, "Fred")
end tell

on PersonTasks(oDoc, strName)
	using terms from application "OmniPlan"
		tell oDoc
			set lstRes to (resources where (resource type is person) and (name is strName))
			if length of lstRes > 0 then
				task of every assignment of first item of lstRes
			else
				{}
			end if
		end tell
	end using terms from
end PersonTasks

Last edited by RobTrew; 2010-04-14 at 12:51 PM.. Reason: wrapped code as PersonTasks() function