Action
Insert Creation Date and Time (First Line)
Posted by Martin Schuhmann,
Last update
about 23 hours ago
Insert Creation Date and Time (First Line)
Insert the creation date and time into the first line of a draft.
For more information, please visit:
https://docs.getdrafts.com/docs/actions/templates/drafts-templates
Steps
-
script
// Insert Creation Date and Time (First Line) // Created by Martin Schuhmann // Insert the creation date and time into the first line of a draft let newContent = draft.processTemplate(`[[created|%d %b %Y %H:%M:%S]] [[draft]]`) draft.content = newContent draft.update()
Options
-
After Success Nothing Notification None Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.