Action script b9c6ee9e26009df9073be48c38080b94bfb6ee64fc0da111d63113483c52634c Make script action

Creates a new action with a single script action step containing the draft. A HTML preview will open with a link that will install the action when clicked.

The first line of your draft should be a comment with the name of the action. If the second line is a comment starting with ‘Descr:’, the rest of the line will be used as the action description. For example:
// My action
// Descr: A simple script action

Note: The action is will store the import url in the clipboard and paste it from there into the preview markup.
Note 2: it would be easier to directly open the url using an URL step, but for some reason Drafts crashes with this setup. For that reason I used the workaround with the HTML preview.

Posted by jneug

Install

Action Steps (4)

Action script@2x 461fb6950c06fe3f6a3b9a38f0f15826c9057825fdbdd0239fd4d2b8be9c870a Script Show detail
Action script@2x 461fb6950c06fe3f6a3b9a38f0f15826c9057825fdbdd0239fd4d2b8be9c870a Script Show detail
Action clipboard@2x 1c7b8ec69a3c60792484db7619d0cfcc92043d33ffe0c6e5a60f829186d80269 Clipboard Show detail
Action html preview@2x b842647ae8ad8104eb0cf66e199bc999683dda813768406f6c8e4e9e2babfae3 HTML Preview Show detail

Advanced

After Success Default
Log Level Error

Discussion

comments powered by Disqus