Omnifocus & launchbar

Sharing and discussing custom search templates for LaunchBar
waynerrr
Posts: 9
Joined: Tue Oct 07, 2008 12:29 pm

Omnifocus & launchbar

Postby waynerrr » Tue Oct 07, 2008 2:05 pm

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

wayne

georgeacrump
Posts: 3
Joined: Tue Jul 15, 2008 1:35 pm

Postby georgeacrump » Sun Nov 09, 2008 6:09 am

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"
            activate
         end tell
      end tell
      open location "x-launchbar:hide"
   end if
end handle_string

waynerrr
Posts: 9
Joined: Tue Oct 07, 2008 12:29 pm

Launchbar and omnifocus

Postby waynerrr » Sun Nov 09, 2008 1:24 pm

Thanks George

I will try you script later this week

Appreciate your kindness in sharing it

jka33331
Posts: 3
Joined: Thu Dec 11, 2008 9:17 am

Postby jka33331 » Mon Dec 22, 2008 7:16 am

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!

gattster
Posts: 1
Joined: Mon Jul 30, 2012 9:12 pm

Re: Omnifocus & launchbar

Postby gattster » Mon Jul 30, 2012 9:15 pm

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.

viellieb
Posts: 2
Joined: Sat Sep 15, 2012 11:15 am

Re: Omnifocus & launchbar

Postby viellieb » Sun Jan 06, 2013 11:06 pm

thanks a lot for the awesome script!
Works perfectly!

nancy30
Posts: 5
Joined: Tue Feb 26, 2013 2:35 pm

Re: Omnifocus & launchbar

Postby nancy30 » Fri Mar 08, 2013 12:24 pm

Thanks for the script george wll try to implement this today


Return to “LaunchBar Search Templates”

Who is online

Users browsing this forum: No registered users and 3 guests