Plug-In: Copy Plaintext & Delete

Sometimes a task may no longer belong in OmniFocus. This may be because you’ve handed it off to someone else, because you’re archiving it, or simply because you don’t want to do it anymore. For the times when you need to save a list of those tasks, without any further formatting, this action comes into play. It copies just the task titles (nothing else), and then deletes the task from your database. — Rosemary Orchard

/*{ "type": "action", "targets": ["omnifocus"], "author": "Rosemary Orchard", "identifier": "com.rosemaryorchard.omnifocus.copy-plaintext-and-delete", "version": "1.0", "description": "Copy a plaintext list of task titles and delete the selected tasks.", "label": "Copy Plaintext & Delete", "shortLabel": "Copy Plaintext & Delete" }*/ (() => { var action = new PlugIn.Action(function(selection, sender){ let taskList = []; selection.tasks.forEach(function(task){ taskList.push(task.name); deleteObject(task); }); Pasteboard.general.string = taskList.join("\n"); }); action.validate = function(selection, sender){ return (selection.tasks.length > 0) }; return action; })();
-->

DISCLAIMER