Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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
set NewTask to make new inbox task with properties {name:theTask, note:theNote}
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment