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)
-   -   On desktop banner of current action (http://forums.omnigroup.com/showthread.php?t=13507)

fathom 2009-08-25 03:34 PM

On desktop banner of current action
 
Hi all. I have a hopefully easy question for you all. I searched and searched, to no avail. I am not sure even what the right search terms would be.

What I would like is a sort of desktop banner that displays my current action (maybe the selected current action, or a list of next actions). I'm thinking of something like a widget that sits on the desktop, probably either at the top of the screen or the bottom, probably at the lowest level (below any other windows that might be there). And, it should show on all Spaces.

The issue is that I can get easily distracted and have a difficult time focusing and not getting distracted. If I had some action item that was always on display, I could easily jump back on track without having to switch to the OmniFocus window, and I could see it no matter which Space I'm in.

Does something like this exist? Or maybe even a menu bar widget? Is there a way to make OmniFocus do this, or is there a plugin, or...?

Thanks!

malisa 2009-08-25 04:10 PM

Sounds like Growl will do what you want. Search for growl here and see what you think.

curt.clifton 2009-08-25 06:14 PM

The script below will display a Growl note listing all selected actions. You can use the Growl system preference pane to configure the notification to be sticky and on all desktops. (An earlier version of this is kicking around on the forums.)

[CODE]
(*
This script uses Growl to display a sticky note about what you are supposed to be focusing on.

version 0.1, by Curt Clifton

Copyright 2007-2008, Curtis Clifton

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

version 0.1: Original release
*)


(*
The following properties are used for script notification via Growl.
*)
property growlAppName : "OmniFocus Stickies"
property notification : "Stick it"
property defaultNotifications : {notification}
property allNotifications : defaultNotifications
property iconLoaningApplication : "OmniFocus.app"

tell application "OmniFocus"
tell front document
tell content of document window 1 -- (first document window whose index is 1)
set theSelectedItems to name of every selected tree
if ((count of theSelectedItems) < 1) then
display alert "You must first select an item to work on." as warning
return
end if
end tell
end tell
end tell
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to return
set theItemsText to theSelectedItems as text
set AppleScript's text item delimiters to oldDelim
my notify("What are you doing?", theItemsText, notification)

(*
Uses Growl to display a notification message.
theTitle a string giving the notification title
theDescription a string describing the notification event
theNotificationKind a string giving the notification kind (must be an element of allNotifications)
*)
on notify(theTitle, theDescription, theNotificationKind)
tell application "GrowlHelperApp"
register as application growlAppName all notifications allNotifications default notifications defaultNotifications icon of application iconLoaningApplication
notify with name theNotificationKind title theTitle application name growlAppName description theDescription with sticky
end tell
end notify
[/CODE]

fathom 2009-08-25 07:15 PM

Thank you both. I tried the script. It is nice. Not exactly what I would like, but it'll work until I figure something else out. I would love to have it tie in with some sort of a desktop widget that sits below windows or in a menu bar. The best Growl notification type is called Music Video, but it slides over your windows, and it disappears after a few seconds -- no way to keep it on screen (sticky) and no way to make it below. I could use one of the "bubble" type notifications, but again, that'll sit on top and block my work.

That said, it's better than anything else now, and I'll try it. Thank you. One thing that I am excited about is that this script demonstrates how to get the current actions for possible use in some desktop or menu bar widget, if I can find one.

Thanks!

Toadling 2009-08-25 08:19 PM

What about [URL="http://projects.tynsoe.org/en/geektool/"]GeekTool[/URL]? Doesn't that allow you to display data as part of your desktop background? I've never tried it myself, but I've heard others talk about it. I'm not sure if it can display the output from an AppleScript directly, but maybe you could use the oascript shell command if necessary.

-Dennis

fathom 2009-08-25 09:17 PM

[QUOTE=Toadling;65220]What about [URL="http://projects.tynsoe.org/en/geektool/"]GeekTool[/URL]?[/QUOTE]

Oh wow. That is cool in so many ways! Thanks. I'll attempt cobble together this and Curt's script.

fathom 2009-08-25 10:52 PM

1 Attachment(s)
Aha! It works perfectly, exactly as I had envisioned. Thank you three for your suggestions. All of your advice, put together, equals very happy.

It's actually pretty cool. It updates automatically, displays whatever actions are selected. Change the selection, and automatically, the pane updates. Here's a screenshot:

[ATTACH]1034[/ATTACH]

If you want to do this too, follow these steps:
1. Open ScriptEditor.
2. Paste this code into it.
[CODE](*
This script works with GeekTool to display the currently selected actions in OmniFocus. This script is modified from a script originally designed to display the currently selected actions in Growl.

version 0.2, by James A. Jones
version 0.1, by Curt Clifton

Copyright 2009, James A. Jones
Copyright 2007-2008, Curtis Clifton

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

version 0.2: GeekTool modification
version 0.1: Original release
*)
set newline to ASCII character 10

property iconLoaningApplication : "OmniFocus.app"

tell application "OmniFocus"
tell front document
tell content of document window 1 -- (first document window whose index is 1)
set theSelectedItems to name of every selected tree
if ((count of theSelectedItems) < 1) then
display alert "You must first select an item to work on." as warning
return
end if
end tell
end tell
end tell
set oldDelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to return
set theItemsText to theSelectedItems as text
set AppleScript's text item delimiters to oldDelim
set output to ""
repeat with selectedItem in theSelectedItems
set output to output & selectedItem & newline
end repeat
output[/CODE]
3. Save the code to a file in your ~/Library/Scripts directory as GeekFocus.scpt or something like that.
4. Install [URL="http://projects.tynsoe.org/en/geektool/"]GeekTool[/URL]
5. In the preferences pane for GeekTool, drag the Shell window out to your desktop.
6. In the preferences window for the Shell window, in the Command field, specify "osascript ~/Library/Scripts/GeekFocus.scpt"
7. Change the update frequency to something reasonable that won't cause too much CPU overhead. I set it to 10 seconds. I changed the timeout to 5 seconds.
8. Change the dimensions, font size/color, and anything else to your hearts content.
9. Enjoy.

curt.clifton 2009-08-26 03:39 AM

That's great. Thanks for sharing back. I may have to finally give GeekTool a try.

xmas 2009-08-26 02:23 PM

1 Attachment(s)
[IMG]http://forums.omnigroup.com/attachment.php?attachmentid=1036&stc=1&d=1251325351[/IMG]

This is totally sweet, I stuck it in my System menu bar.


I think the way I'll manage this is putting OmniFocus on it's own "space", and just switch over and update the selected action when I finish something off.

fathom 2009-08-26 02:36 PM

[QUOTE=xmas;65254][IMG]http://forums.omnigroup.com/attachment.php?attachmentid=1036&stc=1&d=1251325351[/IMG]

This is totally sweet, I stuck it in my System menu bar.


I think the way I'll manage this is putting OmniFocus on it's own "space", and just switch over and update the selected action when I finish something off.[/QUOTE]

How the heck did you do that?!!!! That's even better!


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

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