Last active
January 1, 2019 16:57
-
-
Save doug4j/f370740cbe3346d8be942b63409f8c9e to your computer and use it in GitHub Desktop.
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
//Modified from https://discourse.omnigroup.com/t/creating-a-new-task-with-javascript-for-automation-jxa/22393/2 | |
var app = Application('OmniFocus'); | |
app.includeStandardAdditions = true; | |
var doc = app.defaultDocument; | |
var newTask = app.InboxTask({ | |
name: 'sample task', | |
note: 'a note', | |
}); | |
app.quickEntry.inboxTasks.push(newTask); | |
app.quickEntry.save(); //Non-Interactive | |
//app.quickEntry.open(); //Interactive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment