12.23.4 Beta: Clipboard pasting date and time codes

When it comes to pasting from the clipboard, it's possible to use AS=ask with a predetermined file name, for example AS=ask:{date|D#}_{time|T#}, as described by the Help (online version not up-to-date with beta).

It'll produce the file name: 12-04-21_20:57:50.

The problem arises in T#s case where the predetermined value contains : as separators which are invalid file name characters.

Or, if adding I (System Invariant Locale) after D#, the date may use separators that are also invalid, such as /.

Pressing OK to this dialoague can have unintended outcomes. Maybe these characters should be automatically replaced for valid ones, or disallow D# and T# for the dialogue altogether?

I've also noticed that the dialogue doesn't support Ctrl+Backspace, which would be useful here as it's involving file naming. Inline Renaming already supports this combination.


- Directory Opus v12.23.4 Beta x64 Build 7769
- Windows 10 v20H2 OS Build 19042.906

Not sure why this was filed as a bug. :slight_smile: {time} does what it should. If you use it in an inappropriate place, things will go wrong, the same as if you did something else which tried to include : characters in a filename.

Use an appropriate time format if you need the time to be safe for filenames. The bug was in your usage, not the program.

1 Like