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.

Revisions

  1. bradwright created this gist Feb 19, 2014.
    20 changes: 20 additions & 0 deletions send-chrome-tab-to-omnifocus.scpt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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