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

Shortcuts to Where in OF searches Thread Tools Search this Thread Display Modes
An experimental feature in version .740 of Where in OF which you are very welcome to test.

NB these shortcut scripts currently only work from the script menu, LaunchBar, etc - don't try to run them from the OmniFocus toolbar - on which they seem to cause a freeze ...

If you place a copy of Where in OF (.740 and above) in your OmniFocus scripts folder:
You can then create very simple shortcut scripts, which jump straight to frequently-used searches, along the lines of:

do shell script "osascript ~/Library/Scripts/Applications/Omnifocus/ \"tasks where (name contains <txt>) or (note contains <txt>)\""
As such scripts need to use the exact name of the WhereInOF app, it may be sensible to rename a copy of .app file, dropping the version affix, to, so that you can write:

do shell script "osascript ~/Library/Scripts/Applications/Omnifocus/ \"tasks where (name contains <txt>) or (note contains <txt>)\""
rather than having to modify any shortcut scripts if you download a later version.
tasks where (name contains <txt>) or (note contains <txt>)
is a useful general string search, which will also find strings in project names and notes, and you may want searches which give a more date-based or status-based custom filtering.

Thanks to whpalmer4 for suggesting saved searches which could be fired off by simple scripts.


Last edited by RobTrew; 2012-07-17 at 05:50 AM.. Reason: Updated link to Where in OF
A general LaunchBar script for string searches which use Where In OF.

(Choose the script with a LaunchBar abbreviation, and then tap the space-bar to enter the string you want to search for).

Assumes that the Where In OF .app file has has the following path and name:
(Where ~ is a system-recognised abbreviation for your home folder)

on handle_string(strQuery)
	set str to do shell script ("osascript ~/Library/Scripts/Applications/Omnifocus/ 'tasks where (name contains \"" & strQuery & "\") or (note contains \"" & strQuery & "\")'")
end handle_string
Attached Files
File Type: zip (2.0 KB, 194 views)

Last edited by RobTrew; 2012-07-17 at 05:50 AM.. Reason: Corrected typo in the code

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Save searches nestor OmniOutliner 3 for Mac 0 2007-01-15 06:22 AM
Google do not remember searches emidwood OmniWeb Bug Reports 1 2006-12-20 02:59 PM
Keyboard Shortcuts (ei Command+1 etc.) for Search Shortcuts Gazam OmniWeb Feature Requests 5 2006-12-08 02:44 PM
Force Search-bar searches to new tab Hayl OmniWeb General 3 2006-06-25 03:17 PM
save previous searches jeffisme OmniWeb Feature Requests 1 2006-05-03 10:58 AM

All times are GMT -8. The time now is 06:05 PM.

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