View Single Post
I'm trying to search for a particular string in a task name and then edit this task.

I can search for the task containing "xyz" with this code:

Code:
set searchstring to "xyz"
tell application "OmniFocus"
	tell front document
		tell document window 1
			set search term to searchstring
                        
                end tell
        end tell
end tell
But then I do not know how to access the task that was found in the tree.
How can I solve this. Does anyone have a hint how to access the task?

Thanks
Deborah