rename file with date

Post Reply
cyberal
Posts: 6
Joined: 28 Oct 19 12:00

rename file with date

Post by cyberal » 22 Nov 19 14:20

Hello,

I want to rename the files in my catalog adding the date to the filename.
Therefore I choose operations-rename-file and then take the date from the file and add some "-","." and ":".
Everything works, except the ":" which is shown correctly in the preview.
Bildschirmfoto 2019-11-22 um 14.15.23.png
Bildschirmfoto 2019-11-22 um 14.15.23.png (248.13 KiB) Viewed 291 times
But after the renaming happened the ":" is replaced by a "-" (dash).
Bildschirmfoto 2019-11-22 um 14.17.38.png
Bildschirmfoto 2019-11-22 um 14.17.38.png (33.49 KiB) Viewed 291 times
Am I doing something wrong?

Any hint is appreciated.

Warm regards,
Alex
Macbook Pro. Mac OS Mojave (10.14.6)

jstartin
Posts: 401
Joined: 23 Aug 06 13:47
Location: UK

Re: rename file with date

Post by jstartin » 22 Nov 19 14:38

With Windows ":" is one of the characters that is not allowed in filenames.
Jim (Photo Supreme: AMD Quad-Core A8-5500 Accelerated Processor 3.2 GHz; internal AMD Radeon™ HD7560D; 4GB DDR3 SDRAM; Win10x64)

cyberal
Posts: 6
Joined: 28 Oct 19 12:00

Re: rename file with date

Post by cyberal » 23 Nov 19 7:13

I am using Mac OS. Manual renaming with „:“ works fine.
Macbook Pro. Mac OS Mojave (10.14.6)

Hert
Posts: 5877
Joined: 13 Sep 03 7:24

Re: rename file with date

Post by Hert » 23 Nov 19 10:22

You should never use colons in file names on macOS.
While the Unix layer allows colons in a file name, the Mac layer doesn't.
In Finder, if you try to rename a file with a colon then Finder gives an error:
Screenshot 2019-11-23 at 10.20.09.png
Screenshot 2019-11-23 at 10.20.09.png (161.26 KiB) Viewed 240 times
And if you use TextEdit and try to enter a colon in the file name then it is instantly replaced with a dash. This for the same reason.

Maybe consider using the date part like %FileName-%dd.%mm.%yyyy-%hh%nn.%FileExtension (e.g IMG_3880-27.04.2019-0215.jpg)
This is a User-to-User forum which means that users post questions here for other users.
Feature requests, change suggestions, or bugs can be logged in the ticketing system

cyberal
Posts: 6
Joined: 28 Oct 19 12:00

Re: rename file with date

Post by cyberal » 23 Nov 19 11:40

Thanks for the answers. Will use then a different character.
Macbook Pro. Mac OS Mojave (10.14.6)

Post Reply