Creates a new draft in Drafts using AppleScript, and so not bringing the Drafts application to the foreground. The flow supports setting the flagged status of the new draft, as well as adding tags, and prefixing all lines with additional text. This can be useful for setting up Markdown lists (numbered or bulleted) for example.
The following variables can be passed in and will be processed by the flow.
| ||The base content to populate the new draft with.|
| ||Set as |
| ||The text to prepend to each content line.|
| ||A comma separated list of tags to add to the new draft.|
* These are mandatory for triggering this flow.
The following variables are set-up by the flow.
| ||The (modified) content to populate the new draft with.|
| ||Always set to |
| ||The title to be shown in any completion notification.|
| ||The message to be shown in any completion notification.|
- External Trigger:
- Supports new lines from Alfred input as “
- Supports tab characters from Alfred input as “
- Accessing environment variables from an AppleScript run from within Alfred encounters UTF encoding issues. For this reason the AppleScript utilises embedded shell script to get the
tagsenvironment variables - i.e. in case they contain accented characters, etc.