Skip to content

Instantly share code, notes, and snippets.

@temochka
Created October 4, 2017 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save temochka/eac85b0b3cc976a9ae807854b01284d9 to your computer and use it in GitHub Desktop.
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.
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