Adding custom perspective that filters out text

I would like to add a custom perspective that filters out projects with the word [TEMPLATE] in it. Is there any way to add regex filtering when creating a custom perspective?

1 Like

Apparently, you can’t use regex filtering in the find text field of a custom perspective.
However, if you have OmniFocus Pro, you can try this script. Maybe it does what you want.

--unlocked2412
property the_text : "[TEMPLATE]" -- FILTER THIS TEXT

tell application "OmniFocus"
	tell default document
		set lst_projects to every flattened project whose (name does not contain the_text)
		tell front document window
			set focus to lst_projects
		end tell
	end tell
end tell
2 Likes