Today Workspace

This is a script for Drafts.

The script allows you to get all drafts with the date of today in the title, within the workspace “Today”.

The date is formatted this way : YYYY-MM-DD.

// first customize the workspace name
let todayWorkspaceName = 'Today';
// script
let workspace = Workspace.find(todayWorkspaceName);
// if you have load of drafts, you can filter them with a tag and uncomment the next line
// workspace.tagFilter = 'today';
workspace.queryString = 'title:' + strftime(new Date(), '%Y-%m-%d');
workspace.update();
app.applyWorkspace(workspace);
app.currentWindow.showDraftList();

Published in the Draft directory.