Page 1 of 1

Omnifocus & launchbar

Posted: Tue Oct 07, 2008 2:05 pm
by waynerrr
I am a user of omnifocus to store my information

Is it possible to search for items within omnifocus by using the launchbar tool.

If you look at the way that the dictionary works with launchbar (in launchbar i type "dic" & then press spacebar then the dictionary search box is immediately available
thats how i want Launchbar to work with omnifocus

I can see how it would work but I cannot work out the keyboard movements:-

thank you


Posted: Sun Nov 09, 2008 6:09 am
by georgeacrump
Here is a script that I use to find a specific subject:

Code: Select all

on handle_string(ProjectString)
   if ProjectString is not "" then
      tell application "OmniFocus"
         set MyDoc to default document
         tell MyDoc
            set MyProjectArray to complete ProjectString as project maximum matches 1
            set MyProjectID to id of first item of MyProjectArray
            set ThisProject to project id MyProjectID
            set newW to make document window with properties {focus:{ThisProject}, selected view mode identifier:"project", search term:""}
            set (selected smart group identifier of sidebar of newW) to "remaining-projects"
            set selected task state filter identifier of content of newW to "incomplete"
            -- set selected task state filter identifier of content of newW to "all"
         end tell
      end tell
      open location "x-launchbar:hide"
   end if
end handle_string

Launchbar and omnifocus

Posted: Sun Nov 09, 2008 1:24 pm
by waynerrr
Thanks George

I will try you script later this week

Appreciate your kindness in sharing it

Posted: Mon Dec 22, 2008 7:16 am
by jka33331
Hey, George

I don't have a great understanding of AppleScripts. Can you tell me how I can set this apple script up and what it exactly does? Any help would be appreciated. Thanks!

Re: Omnifocus & launchbar

Posted: Mon Jul 30, 2012 9:15 pm
by gattster
I got the script to work by saving it to ~/Library/Application Support/LaunchBar/Actions/omnifocus-project.applescript.

I also added a task for myself to learn applescript. I've been on a mac 5+ years, program in many languages, but know nothing about applescript.

Re: Omnifocus & launchbar

Posted: Sun Jan 06, 2013 11:06 pm
by viellieb
thanks a lot for the awesome script!
Works perfectly!

Re: Omnifocus & launchbar

Posted: Fri Mar 08, 2013 12:24 pm
by nancy30
Thanks for the script george wll try to implement this today