pattulus
4/17/2012 - 10:26 AM

Create an OmniFocus task from the current URL of the active Chrome tab

Create an OmniFocus task from the current URL of the active Chrome tab

tell application "Google Chrome"
	set theTitle to title of active tab of front window
	set theURL to URL of active tab of front window
end tell

tell application "OmniFocus"
	set theDoc to default document
	set theTask to theTitle
	set theNote to theURL
	
	-- comment out the whole tell quick entry block if you want tasks to go straight to inbox
	tell quick entry
		open
		set NewTask to make new inbox task with properties {name:theTask, note:theNote}
		activate
	end tell
end tell