Skip to content

Instantly share code, notes, and snippets.

@patrickwelker
Forked from rfbrazier/gist:1077160
Created April 17, 2012 10:26
Show Gist options
  • Save patrickwelker/2405115 to your computer and use it in GitHub Desktop.
Save patrickwelker/2405115 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment