The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Reveal Script (switch alternative) (http://forums.omnigroup.com/showthread.php?t=5443)

Alex Brown 2007-11-06 05:00 AM

Reveal Script (switch / show in planning mode alternative)
 
2 Attachment(s)
Here's a script which provides a useful alternative to the switch operation, aka show in (context|planning) mode, or twin

When applied to a single leaf action (not in the inbox), it opens a new window focussed on the project that contains the action, with filters in a default state, allowing you to see the other actions remaining on that project.

This allows you to quickly see if next actions exist, and create or adjust them as necessary before completing your actions and closing the new window.

You can then continue working in the original window where you left off.

I use this a lot.

To install, copy Reveal.scpt from the zip file to ~/Library/Scripts/Applications/Omnifocus and restart Omnifocus. You can add it to your Omnifocus toolbar by right clicking on the toolbar and selecting "Customize Toolbar".

UPDATED 30/12/07 - 1.4.2 use this if 1.4.3 doesn't work for you. [deleted]
UPDATED 30/12/07 - 1.4.3 recommended version (works like original 1.4.0 version). [deleted]
UPDATED 4/12/07 - 1.4.4 fix for "not an action" due to inbox task rename to task in scripting interface
UPDATED 10/5/07 - 2.0.5ß cleanup - might fix the pi issue mentioned elsewhere. Known bug: additional 'main' script visible in Customise Toolbar

ßeta users note: you should delete any existing Reveal scripts from ~/Library/Scripts/Applications/Omnifocus before installing the new Reveal Script.

The script "Pan Out" is also available elsewhere on this site; it expands the focus to include the parents of the current focus.

-Alex Brown

Craig 2007-11-06 08:50 AM

Hey, thanks Alex! This is just about what I was wishing for [URL="http://forums.omnigroup.com/showpost.php?p=18043&postcount=1"]months ago[/URL]!

dbyler 2007-11-12 09:19 AM

Agree: this is a useful little tool. Thanks also for making an icon for it; there's nothing worse than a generic script icon in the toolbar.

steve 2007-11-18 06:00 AM

This is so useful it seems like it should be baked in. Thanks for making it!

uku 2007-11-22 04:00 AM

Script doen't work in revision 94950
 
Thank you, Alex, for this awfully usefull script! It became part of my workflow when completing actions in context mode.

Unfortunately it doesn't work anymore since I installed the latest updates (currently r 94950). When I start the script I get the error message:

[I]AppleScript reported the following error:
The variable w is not defined.[/I]

I looked at the script to edit it but I'm not shure how to re-define this variable |w|.

So, can you help me to get the script work again?

Craig 2007-11-22 06:15 AM

[QUOTE=uku;25653]Thank you, Alex, for this awfully usefull script! It became part of my workflow when completing actions in context mode.

Unfortunately it doesn't work anymore since I installed the latest updates (currently r 94950). When I start the script I get the error message:

[I]AppleScript reported the following error:
The variable w is not defined.[/I][/QUOTE]

Just a me-too post, on the gratefulness and on the error report.

curt.clifton 2007-11-22 06:20 AM

A recent OF build changed window access. Here's a fix.

Change the line:
[CODE]
set |w| to (first document window whose index is 1)
[/CODE]

To:
[CODE]
set |w| to document window 1
[/CODE]

uku 2007-11-22 06:47 AM

[QUOTE=curt.clifton;25671]A recent OF build changed window access. Here's a fix.
[/QUOTE]


Thank you, Curt! The script runs again!

By the way, is there any documentation of the OF script suite?

curt.clifton 2007-11-22 07:10 AM

[QUOTE=uku;25677]
By the way, is there any documentation of the OF script suite?[/QUOTE]

Just the usual Applescript dictionary, available from File --> Open Dictionary in Script Editor. There are lots of open-source scripts floating around also. My collection is available [URL="http://www.rose-hulman.edu/~clifton/software.html"]here[/URL]. (I'll be revving a bunch of those soon, as many of my scripts suffered from the same problem as Alex's Reveal script.)

jasong 2007-11-24 11:44 PM

Any suggestions on handling multiple open windows? As written (with Curt's fix) the script takes the selection from the first window, which may not be the frontmost window.


All times are GMT -8. The time now is 01:12 AM.

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