Created
October 4, 2017 00:32
-
-
Save temochka/eac85b0b3cc976a9ae807854b01284d9 to your computer and use it in GitHub Desktop.
Save current tab’s title and URL to OmniFocus via the quick entry dialog.
This file contains hidden or 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
var Safari = Application('Safari'); | |
var OmniFocus = Application('OmniFocus'); | |
var currentWindow = Safari.windows[0]; | |
var currentTab = currentWindow.currentTab(); | |
var task = OmniFocus.InboxTask({ name: currentTab.name(), note: currentTab.url() }); | |
OmniFocus.quickEntry.open(); | |
OmniFocus.quickEntry.inboxTasks.push(task); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment