Todos in Things

Posted by agiletortoise, Last update over 4 years ago

Send each line of the draft to Things as a separate todo. Required Things 3.4 or greater.


  • script

      Send each line of a draft to things as a todo
    const lines = draft.content.split("\n");
    var todos = [];
    for (line of lines) {
    	var todo = TJSTodo.create();
    	todo.title = line;
    const container = TJSContainer.create(todos);
    var cb = CallbackURL.create();
    cb.baseURL = container.url;
    if ( {
    	console.log("Todos created in Things");
    else {;


  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.