As @cgrunenberg said, in DT you’ll need a smart rule with script for that. Alternatively, an automator action or a shell script might achieve the same. But they all probably require your machine to be running all the time… Even so, I’m not sure that Automator or DT is able to run scripts when they are in the background or not even running. A shell script in combination with a cron job might be your best choice.
And: I’d suggest to make the file name a bit more specific then just the current date
You could create a group, a reminder and use this reminder script
-- Create daily markdown record via reminder
on performReminder(theGroup)
tell application id "DNtp"
set theName to do shell script "date \"+%Y-%m-%d\""
create record with {name:theName, type:markdown, plain text:""} in theGroup
end tell
end performReminder
Thanks! This is the working script as it stands currently:
-- Create daily markdown record via reminder
on performReminder(theGroup)
tell application id "DNtp"
set theName to do shell script "date \"+%Y%m%d\""
create record with {name:theName, type:markdown, plain text:"# " & theName & linefeed & linefeed & "- "} in theGroup
end tell
end performReminder
The last ideal improvement would be to replace my header text which returns variable theName into the equivalent of DT’s insert date, which creates a human readable friendly date.