Plug-In: Copy Plain Text and 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
Return to: OmniFocus Plug-In Collection
DISCLAIMER
Software and examples are provided by OMNI-AUTOMATION.COM on an "AS IS" basis. OMNI-AUTOMATION.COM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF NON - INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, REGARDING THE OMNI-AUTOMATION.COM SOFTWARE OR ITS USE AND OPERATION ALONE OR IN COMBINATION WITH YOUR PRODUCTS.
IN NO EVENT SHALL OMNI-AUTOMATION.COM BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES ( INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION ) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND / OR DISTRIBUTION OF THE OMNI-AUTOMATION.COM SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT, TORT ( INCLUDING NEGLIGENCE ), STRICT LIABILITY OR OTHERWISE, EVEN IF OMNI-AUTOMATION.COM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. OMNI-AUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. OMNI-AUTOMATION.COM provides this only as a convenience to our users. OMNI-AUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and OMNI-AUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from OMNI-AUTOMATION.COM and that OMNI-AUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.
Copy Plain Text and Delete
/*{
"type": "action",
"targets": ["omnifocus"],
"author": "Rosemary Orchard",
"identifier": "com.rosemaryorchard.omnifocus.copy-plaintext-and-delete",
"version": "1.1",
"description": "Copy a plaintext list of task titles and delete the selected tasks.",
"label": "Copy Plaintext and Delete",
"shortLabel": "Copy Plaintext and Delete",
"paletteLabel": "Copy Plaintext and Delete",
"image": "doc.on.doc.fill"
}*/
(() => {
const action = new PlugIn.Action(function(selection, sender){
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;
})();