I have been using ReNamer by Denis Kazlov for quite some time now. One little annoyance I had with this application was lack of flexibility when inserting image EXIF dates. You can insert a date, but its format is determined by a global setting in Settings > Meta tags. This works fine if you have only one ReNamer pre-set with date (or all pre-sets use the same date format). But in my case I had several pre-sets that required different date formats, which forced me to constantly change the format in settings.

 

 

I got to the stage where I started to look into different file renaming utilities, but luckily I also decided to email the developer. Somewhat to my surprise, Denis replied after couple of minutes and provided a neat workaround. Simply add a Pascal Script rule with following code:


begin
FileName := CalculateMetaTagFormat(FilePath, 'EXIF_Date', 'yyyy-mm-dd hh.mm.ss') +
WideExtractFileExt(FileName);
end.

Code is pretty self explanatory. To change EXIF date format, simply modify 'yyyy-mm-dd hh.mm.ss'
yyyy - Year
mm - Month
dd - Day
hh - Hour
mm - Minute
ss - Second

Above example will strip out existing file name, if you want to keep it, use following:


begin
FileName := WideExtractBaseName(FileName) + ' ' +
CalculateMetaTagFormat(FilePath, 'EXIF_Date', 'yyyy-mm-dd') +
WideExtractFileExt(FileName);
end.

August 2015
ReNamer v6.2

No comments

Leave your comment

In reply to Some User
Captcha Image