App-to-App

THIS PAGE UNDER CONSTRUCTION

Maecenas sed diam eget risus varius blandit sit amet non magna. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas sed diam eget risus varius blandit sit amet non magna. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Cras mattis consectetur purus sit amet fermentum. Maecenas sed diam eget risus varius blandit sit amet non magna.

/*{ "type": "action", "targets": ["omnifocus"], "author": "Otto Automator", "identifier": "com.omni-automation.copy-task-to-omniplan", "version": "1.0", "description": "This action will create a new task in OmniPlan matching the parameters of the selected OmniFocus task.", "label": "Copy Task to OmniPlan", "paletteLabel": "Copy to OmniPlan" }*/ var _ = function(){ var action = new PlugIn.Action(function(selection, sender){ // action code // selection options: tasks, projects, folders, tags var task = selection.tasks[0] var taskTitle = task.name var taskNote = task.note var dDate = task.dueDate dDate = (dDate != null) ? dDate.toString() : "" var functionString = `function makeNewOPTask(){ task = actual.rootTask.addSubtask() link = "omniplan:///task/" + task.uniqueID task.title = \"${taskTitle}\" task.note = \`${taskNote}\` if (\"${dDate}\" != ""){ task.endNoLaterThanDate = new Date(\"${dDate}\") } return link }` functionString = functionString.toString() + '\n' + 'makeNewOPTask()' console.log(functionString) var scriptURL = URL.tellScript("omniplan", functionString) scriptURL.call(function(reply){ console.log(reply) if (reply.startsWith("omniplan:///")){ task.note = task.note + "\n" + reply link = URL.fromString(reply).call(()=>{}) } }) }); action.validate = function(selection, sender){ // validation code // selection options: tasks, projects, folders, tags return (selection.tasks.length === 1) }; return action; }(); _;
UNDER CONSTRUCTION

This webpage is in the process of being developed. Any content may change and may not be accurate or complete at this time.

DISCLAIMER