View Single Post
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, 260 views)

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