Skip to content

Instantly share code, notes, and snippets.

@rfbrazier
Created July 12, 2011 01:05
Show Gist options
  • Save rfbrazier/1077160 to your computer and use it in GitHub Desktop.
Save rfbrazier/1077160 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