Action

Today Workspace

Posted by @scripts4drafts, Last update over 1 year ago

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.

Steps

  • script

    // 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();

Options

  • After Success Default
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.