The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   All but on-hold Projects? (http://forums.omnigroup.com/showthread.php?t=17684)

Oogiem 2010-08-30 10:18 AM

All but on-hold Projects?
 
I can't seem to figure out how to create a perspective that is all projects except those that are on hold.

I want to see active, stalled and pending all at one time in the projects window.

How do I do that?

RobTrew 2010-08-30 10:50 AM

If you are running OF 1.8, and don't mind a flattened list of your projects (ie don't mind temporarily hiding the folder structure), you could do this with an applescript along the lines of:

[CODE]tell application id "com.omnigroup.omnifocus"
tell front document
set lstNotOnHold to flattened projects where (status is not on hold) and ((effectively hidden of its folder is false) or (its folder is missing value))
set focus of front document window to lstNotOnHold
end tell
end tell[/CODE]

And later restore the normal view (and visibility of folders) from the menu system with View > Show All Projects

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

Oogiem 2010-08-30 11:20 AM

Well 1.8 isn't out yet as far as I can tell and I do need my folders to be there. A flattened list is not workable for me. Thanks for trying though...

hypotyposis 2010-08-31 07:09 PM

[QUOTE=Oogiem;84574]Well 1.8 isn't out yet as far as I can tell and I do need my folders to be there. A flattened list is not workable for me. Thanks for trying though...[/QUOTE]

1.8 is available as a sneaky peek: [url]http://www.omnigroup.com/products/omnifocus/download/sneakypeek/[/url]

whpalmer4 2010-08-31 09:45 PM

Try grouping by folder after running Rob's script...

RobTrew 2010-09-01 12:13 AM

[QUOTE=whpalmer4;84663]Try grouping by folder after running Rob's script...[/QUOTE]

and you could use a version of the script which includes that step:

[CODE]tell application id "com.omnigroup.omnifocus"
tell front document
set lstNotOnHold to flattened projects where (status is not on hold) and ((effectively hidden of its folder is false) or (its folder is missing value))
tell front document window
set focus to lstNotOnHold
set selected grouping identifier of content to "folder"
end tell
end tell
end tell[/CODE]

Oogiem 2010-09-03 07:00 AM

OK Stupid question, how/where/using what SW do I run the script?

RobTrew 2010-09-03 08:16 AM

[QUOTE=Oogiem;84844]How/where/using what SW do I run the script?[/QUOTE]

[URL="http://forums.omnigroup.com/showthread.php?t=7453"]In this thread[/URL], you will find instructions for installing it on your OF toolbar.

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

Oogiem 2010-09-04 05:52 AM

OK Now I'm getting an error in the script editor when I try to save the script to the desktop so I can move it to the script folder.

A plural expected where end of line should be and it's highlighting projects in the 3rd line.

Here's the exact message "Expected end of line but found plural class name."

RobTrew 2010-09-04 08:10 AM

[QUOTE=Oogiem;84891]OK Now I'm getting an error in the script editor when I try to save the script to the desktop so I can move it to the script folder.

A plural expected where end of line should be and it's highlighting projects in the 3rd line.

Here's the exact message "Expected end of line but found plural class name."[/QUOTE]

Probably best to test the script in the editor before try to move it, but in the meanwhile, couple of questions:[LIST=1][*]I presume that you are now running OF 1.8 (sneaky peek) ?[*]Have you copied and pasted the whole of the script straight into the Applescript Editor ?[/LIST]
I attach a zipped copy of the script.

(I do appreciate, incidentally, that downloading and installing scripts is not the ideal solution to getting customized views of your data - I have an idea that OF 2 will aim to extend the flexibility of perspectives and search, and spare us some of the indignity of having to write or download scripts to find the things we are looking for, and get the view we want.
Having said that, OF 1.8 has already made such scripts very much easier to write and understand, which is more than welcome ... )

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


All times are GMT -8. The time now is 04:05 PM.

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