Skip to content

Instantly share code, notes, and snippets.

@jnjosh
Last active December 11, 2015 18:59
Show Gist options
  • Save jnjosh/4645603 to your computer and use it in GitHub Desktop.
Save jnjosh/4645603 to your computer and use it in GitHub Desktop.
AppleScript for grabbing the title/url of the current tab in webkit and create an OmniFocus inbox item
tell application "WebKit"
set aTitle to name of current tab in front window
set aURL to URL of current tab in front window
end tell
tell application "OmniFocus"
set aTask to aTitle
set aNote to aURL
tell default document to make new inbox task with properties {name:aTask, note:aNote}
end tell
tell application "WebKit" to close the current tab in front window
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment