The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Applescript for finding an OmniFocus project quickly (http://forums.omnigroup.com/showthread.php?t=18580)

RobTrew 2010-10-16 03:58 AM

Applescript for finding an OmniFocus project quickly
 
You can use [URL="http://www.complexpoint.macmate.me/Site/Quickly_find_an_OmniFocus_project.html"]this script[/URL] from LaunchBar, or on its own, to find a project quickly by typing a phrase or a few characters from its name.

[B]LaunchBar[/B]: select the script in LaunchBar and tap the space bar to get a text field.

[B]On its own:[/B] [URL="http://forums.omnigroup.com/showthread.php?t=7453"]install the script in the OF toolbar, or in the OF script menu[/URL].
When the script is run, the user will be prompted to enter a part of the project name.

If there is only one match, the script will immediately switch the focus to the specified project. If there are several matches, the user is offered a list from which one or more choices can be made.

(Tip: for an alphabetic listing of [B]all[/B] projects, just enter a percentage character [B]%[/B], or an underscore character [B]_[/B] on its own.

Wildcards generally: % can be used as a substitute for any number of characters in a project name, and _ can be used as a substitute for any single character.)

[I][COLOR="Gray"]-- Ver 0.1 adds alphabetic sorting
-- Ver 0.2 defaults to opening a new window [this can be reset by editing pblnNewWin above to false]
-- Ver 0.3 brings OmniFocus to the front
-- Ver 0.4 fixes the handling of search strings and project names which contain double quotes
-- Ver 0.6 If no match found, dialog now offers to run an amended search or create a project[/COLOR][/I]

[COLOR="White"]--[/COLOR]

mpw 2010-10-16 07:35 AM

This is great! I've been looking for something like this for years. Is there any way to have it open a new window when it focuses on the project?

RobTrew 2010-10-16 10:46 AM

[QUOTE=mpw;87565]Is there any way to have it open a new window when it focuses on the project?[/QUOTE]

I've amended the script (in the zip in the post above).

It now defaults to opening a new window.

(The old behaviour can be restored by editing the [I]pblnNewWin[/I] property at the start of the script to [I]false[/I]).

RobTrew 2010-10-16 09:33 PM

Modified, in the zip above, so that it brings OF to the front when you are using another application.

whpalmer4 2010-10-16 09:43 PM

[QUOTE=RobTrew;87586]Modified, in the zip above, so that it brings OF to the front when you are using another application.[/QUOTE]

More proof that the automatic software updater for Applescript I keep encouraging you to write would be time well spent :)

RobTrew 2010-10-16 10:10 PM

[QUOTE=whpalmer4;87587]More proof that the automatic software updater for Applescript I keep encouraging you to write would be time well spent :)[/QUOTE]

Mm ... How does one get it to update itself while running ?
Perhaps an updater updater ? And so on ? :)

(Oddly enough, I notice that there do seem to be precedents ...)

RobTrew 2010-10-19 03:04 AM

Still no automatic updater, but if no match is found, Ver 0.6 now offers to run an amended search, or create and focus on a project of the given name.

turadg 2010-11-15 02:11 PM

This is almost exactly what I've wanting. Thanks!

([I]Exactly[/I] would be for Omnifocus to have this built in. ;)

duracula 2010-11-28 07:21 AM

Error
 
Hey,

I got this error : AppleScript reported the following error:
OmniFocus got an error: No smart group has the identifier "all-projects".

What should i do?

thanks.

RobTrew 2010-11-28 07:58 AM

If that was caused by having pblnNewWin set to false, and searching with a context view window open, then Ver 0.7, which now ensures that we are really looking at a project view window, should fix it.

(Ver 0.7 above)


All times are GMT -8. The time now is 09:06 AM.

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