RenameToTaken.js.txt (6.4 KB)
Prefix image/movie files with a date and time stamp whilst retaining the original file name stem (in brackets) for easy restoration.
Uses date taken metadata if available, otherwise uses date modified.
e.g. myfile.jpg is renamed to 20200609_123456_tkn_(myfile).jpg or 20200609_123456_mod_(myfile).jpg
Operates on selected files, ignoring those that are not recognised as images or movies.
Installation: Save the attached RenameToTaken.js.txt file to Script Addins then use as follows:
- RenameToTaken CFG
- RenameToTaken MOVE
- RenameToTaken REVERT
(1) Rename elegible selected files.
(2) Open the configuration file.
(3) Rename elegible selected files and move to YYYY/MM structure.
(4) Restore original file names.
Unless disabled in the configuration, the ctrl qualifier key can be used to open the configuration file as an alternative to (2).
Unless disabled in the configuration, the shift qualifier key can be used to move to YYYY/MM structure as an alternative to (3).
Sample before / after without move / after with move to YYYY/MM