Skip to content

Instantly share code, notes, and snippets.

@bradwright
Created February 19, 2014 22:02
Show Gist options
  • Save bradwright/9102616 to your computer and use it in GitHub Desktop.
Save bradwright/9102616 to your computer and use it in GitHub Desktop.
Send current Safari tab to OmniFocus
on run {input, parameters}
tell application "Safari"
set theUrl to (URL of current tab of window 1)
set theName to (name of current tab of window 1)
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