Plug-In: Share Clipboard Text

Here’s a useful plug-in that summons the system Share Panel to share the current text on the clipboard. Great for creating a new Apple note, or Drafts document!

Return to: OmniFocus Plug-In Collection

Share Clipboard Text

/*{ "type": "action", "targets": ["omnifocus", "omniplan", "omnioutliner", "omnigraffle"], "author": "Otto Automator", "identifier": "com.omni-automation.all.share-clipboard-text", "version": "1.0", "description": "This plug-in will display the system Share Panel for sharing the current text contents of the pasteboard.", "label": "Share Clipboard Text", "shortLabel": "Share Clipboard Text", "image": "square.and.arrow.up.on.square" }*/ (() => { var action = new PlugIn.Action(function(selection, sender){ // action code // selection options: tasks, projects, folders, tags, allObjects var clipboard = Pasteboard.general.string new SharePanel([clipboard]).show() }); action.validate = function(selection, sender){ // validation code return (Pasteboard.general.hasStrings) }; return action; })();