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 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Searching for projects by strings in their notes Thread Tools Search this Thread Display Modes
I've been asked whether one can find projects by keys (string patterns) stored in their notes.

My first response is to suggest a Where in OF search like:
projects where note contains "StringPattern"
but others may have better suggestions ...


Last edited by RobTrew; 2012-07-17 at 06:48 AM.. Reason: Updated link to Where in OF

Thank you very much for posting this. If I could bug you with another question of how to properly invoke Where in OF in an applescript?

ideally, I would like to create a new task in a project that contains a specified Key in its notes.

something like:

set myNewTask to (make new task with properties {name:...} at end of tasks of (project where note contains "StringPattern"))
is that possible?

Thanks for the help
That can be done directly in Applescript - no need for Where in OF.

Something like:

tell application id "OFOC"
	tell front document
		set lstMatch to flattened projects where note contains "StringPattern"
		if length of lstMatch < 1 then
			display dialog "No matches"
		end if
		tell first item of lstMatch
			make new task with properties {name:"Some task name"}
		end tell
	end tell
end tell
Rob, thanks as always for your help! Incidentally, the Where in OF works great for finding the Key on the fly.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching notes scotty321 OmniFocus for iPad 3 2012-01-25 09:38 PM
Searching for Projects with a Context Revearti OmniFocus 1 for Mac 8 2011-12-08 01:56 PM
Getting RTF and HTML strings from formatted text in the Clipboard RobTrew AppleScripting Omni Apps 0 2010-11-01 02:56 PM
Searching for Projects/Tasks on iPhone gcrump OmniFocus for iPhone 1 2008-12-19 10:33 AM

All times are GMT -8. The time now is 02:19 AM.

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