Skip to content

Instantly share code, notes, and snippets.

@bradwright
Created February 19, 2014 22:07
Show Gist options
  • Save bradwright/9102690 to your computer and use it in GitHub Desktop.
Save bradwright/9102690 to your computer and use it in GitHub Desktop.
Send current Chrome tab to OmniFocus
on run {input, parameters}
tell application "Google Chrome"
set theName to title of active tab of front window
set theUrl to URL of active tab of front window
tell application "OmniFocus"
set theTask to theName
set theNote to theUrl
tell quick entry
set NewTask to make new inbox task with properties {name:theTask, note:theNote}
select {NewTask}
open
end tell
tell application "System Events"
keystroke tab
end tell
end tell
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment