Last active
January 1, 2019 16:57
-
-
Save doug4j/f370740cbe3346d8be942b63409f8c9e to your computer and use it in GitHub Desktop.
Revisions
-
doug4j revised this gist
Jan 1, 2019 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ //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; -
doug4j revised this gist
Jan 1, 2019 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,9 +4,7 @@ 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 -
doug4j revised this gist
Jan 1, 2019 . 1 changed file with 5 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -2,10 +2,11 @@ var app = Application('OmniFocus'); app.includeStandardAdditions = true; var doc = app.defaultDocument; var newTask = app.InboxTask({ name: 'sample task', note: 'a note', //context: 'work', //deferDate: somedate }); app.quickEntry.inboxTasks.push(newTask); app.quickEntry.open(); -
doug4j created this gist
Jan 1, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ var app = Application('OmniFocus'); app.includeStandardAdditions = true; var doc = app.defaultDocument; var newTask = app.InboxTask({ name: 'sample task', note: 'a note', //context: 'work', //deferDate: somedate }); app.quickEntry.inboxTasks.push(newTask); app.quickEntry.open();