Action dropbox Save to Dropbox (Trimmed Title)

This action demonstrates use of Javascript to create a file name safe string from the first line of a draft which may contain characters (such as a Markdown header # character).

After creating this value, the script stores it in a custom [[filename]] tag, and uses that tag as the file name in the following Dropbox step.

Using this action, a draft that starts with “## My Nasty Filename Unsafe Title” will be saved as a “My Nasty Filename Unsafe Title.txt” in Dropbox.

The script step in this action could be adapted for use in other actions.

Posted by agiletortoise

Install in Drafts 4   Migrate to Drafts 5

Action Steps (2)

Action script@2x Script Show detail
Action dropbox@2x Dropbox Show detail

Advanced

After Success Default
Log Level Info

Discussion

comments powered by Disqus