The RoLLing cOde

Rumor, crap and –un–original

Archive for June, 2009

Idle reminder script for The Hit List

without comments

This handy script will remind(disturb?) you every N minutes about what you are doing (if you begin a task in
The Hit List
) or you are idling right now as
Growl
notification.

Paste the following code to Script Editor, Save.

try
	tell application "GrowlHelperApp" to register as application "THL Notifier" all notifications {"Doing", "Idle"} default notifications {"Doing", "Idle"} icon of application "The Hit List"
	tell application "System Events"
		tell process "The Hit List" to set myDoing to get value of text field 1 of window "Timer"
		tell application "GrowlHelperApp" to notify with name "Doing" title (myDoing) description ("now doing...") application name "THL Notifier" priority 0 sticky no icon of application "The Hit List"
	end tell
on error
	tell application "GrowlHelperApp" to notify with name "Idle" title ("Something to do?") description ("idle...") application name "THL Notifier" priority 0 sticky no icon of application "The Hit List"
end try

Open Terminal, type

crontab -e

Add this line and save ( you can change 15 to what ever minutes between each reminder)

*/15  *    *    *    *    osascript /path/to/Whatsup.scpt

Note: due to the limitation of the time tracking window display in THL, this script does not support Spaces very well.

Written by freewizard

June 1st, 2009 at 9:34 am

Posted in Crap

Tagged with