to create date folders, but quite often, due to post production taking quite some time, need something like CreateFolder Name "{date|dd-MMM-yy}"-1 READAUTO or similar. Is this possible anyway, without using scripts?
d.setDate(d.getDate() + 1); // Move date part to tomorrow.
to use - 1 instead of + 1 if you want yesterday instead of tomorrow. I think the rest should be fine as-is, except for changing the date format to what you want.
Not sure why I didn't do this originally, but here's a better way for both languages:
Function OnClick(ByRef clickData)
Set d = DOpus.Create.Date()
d.Sub 1, "d"
ds = d.Format("D#dd-MMM-yy")
clickData.func.command.RunCommand "CreateFolder READAUTO=no NAME=""" & ds & """"
End Function
function OnClick(clickData)
{
var d = DOpus.Create.Date();
d.Sub(1,"d");
var ds = d.Format("D#dd-MMM-yy");
clickData.func.command.RunCommand("CreateFolder READAUTO=no NAME=\"" + ds + "\"");
}