Action Directory / Publish to WordPress

Install

Send document text to a Publish workflow in the Workflow app.

Shared by viticci

Script

var title = editor.getFileName();
title = title.substring(0, title.length - 4)
var text = editor.getText();

app.setClipboard(title);

app.openURL('workflow://run-workflow?name=Publish&input=' + encodeURIComponent(text));