The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Inbox notifier script Thread Tools Search this Thread Display Modes
Another small script: Inbox notifier. I often forget that I got something in my inbox by a sync with iSync from my mobile. This script will check for old tasks (creation date > 24 hours ago) and then displays a Growl message:

Code:
on notify(theDescription)
	tell application "GrowlHelperApp"
		set the allNotificationsList to {"Inbox not empty"}
		set the enabledNotificationsList to {"Inbox not empty"}
		
		register as application ¬
			"OmniFocus Inbox Notifier" all notifications allNotificationsList ¬
			default notifications enabledNotificationsList ¬
			icon of application "OmniFocus"
		
		notify with name ¬
			"Inbox not empty" title ¬
			"Inbox not empty" description ¬
			theDescription application name "OmniFocus Inbox Notifier" with sticky
	end tell
end notify

tell front document of application "OmniFocus"
	set oldTasks to inbox tasks whose its creation date < (current date) - 3600 * 24
	set inboxCount to count of oldTasks
	if inboxCount > 0 then
		if inboxCount > 1 then
			my notify((inboxCount as string) & " tasks are waiting.")
		else
			my notify((inboxCount as string) & " task is waiting.")
		end if
	end if
end tell
I let it run once a day via an recurring iCal event.

Schimmi
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script to return a task to the inbox johnrover OmniFocus Extras 10 2010-11-24 02:43 PM
Script to copy iCal todos into Omnifocus inbox? danielcompton OmniFocus Extras 7 2010-09-04 06:01 PM
Script to print email as pdf to inbox attachment Millerworld OmniFocus Extras 2 2009-04-29 02:24 PM
Script to jump from inbox to project RobTrew OmniFocus Extras 1 2008-03-08 10:14 AM
script to set window to inbox? Craig OmniFocus Extras 5 2007-09-19 12:14 AM


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


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