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:
~/Library/Scripts/Applications/Omnifocus/WhereInOF.app
(Where ~ is a system-recognised abbreviation for your home folder)

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

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