Last active
December 11, 2015 18:59
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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