The RoLLing cOde

Rumor, crap and –un–original

Archive for the ‘The Hit List’ tag

URL Handler and Bookmarklet for The Hit List

without comments

This app will handle x-thl:// links and add task to your inbox of
The Hit List

The bookmarklet will use title of web page as title of the task and pick page url and selected text as notes.

THL URL Handler.app.zip
- unpack to Applications folder of your Mac

Send to THL
- Drag to bookmark bar of your favourite browser 

If you’d like to write your own bookmarklet, here’s the template:




position
=optional



only inbox is supported at this stage,
i’ll consider if add support for start/due and specify a project in THL some time later.


Mar 25, 2009 - App updated!

Newly supports:

  • optional position parameter ( beginning or end )
  • inbox can be any project or even folder1/folder2/project

Enjoy!

Written by freewizard

March 22nd, 2009 at 9:59 pm

Posted in Crap

Tagged with

Script Entourage messages to The Hit List

with 2 comments

The Hit List is a good task management software for Mac OSX, and I personally think it’s better than OmniFocus and Things.

tell application "Microsoft Outlook"
	set |inbox| to current messages
	repeat with theMessage in |inbox|
		set theTitle to subject of theMessage
		set theNotes to (content of theMessage) & return
		set theID to id of theMessage as string
		set theCommand to "mdfind com_microsoft_entourage_recordID==" & theID
		set theMDfile to the first item of paragraphs of (do shell script theCommand)
		set theDate to time received of theMessage
		tell application "The Hit List"
			tell inbox to set theTask to make new task with properties {title:theTitle & " @email", notes:theNotes, start date:theDate}
			tell notes of theTask to make new attachment with properties {file name:theMDfile} at after the last paragraph
		end tell
		set msgLen to the length of theNotes
		if msgLen > 120 then
			set theNotes to get text 1 through 120 of theNotes
			set theNotes to theNotes & "..."
		end if
		tell application "GrowlHelperApp" to notify with name "New Email" title (theTitle) description (theNotes) application name "Entourage Growl Notifier" priority 0 sticky no icon of application "The Hit List"
	end repeat
end tell

To use this as a mail rule, in Entourage, open menuToolsRules, add a new rule with “Run AppleScript” as its action.

To use this as a menu item or hotkey script, copy the script to ~/Documents/Microsoft User Data/Entourage Script Menu Items/ , it’ll appear in the Script menu of Entourage.You can even add a \cT after it’s name so that it will be triggered when you press Ctrl-T.

Written by freewizard

March 18th, 2009 at 9:30 am

Posted in Crap

Tagged with ,