Date

Advanced Renamer forum
#1 : 10/05-21 07:18
Renato Di Pietro
Renato Di Pietro
Posts: 2
I need to rename some files incrementing the day on a date by one for each file.
For example I have following files:
01.jpg
02.jpg
03.jpg

and I need to have them as follows :

20210510,01.jpg
20210511,02.jpg
20210512,03.jpg

Other thing

I have a file like this :
Ladri di biciclette ,Vittorio ,De Sica ,1949,,.avi

And I need to have it renamed as follows :
1948,Ladri di bicilette ,Vittorio ,De Sica ,1948,,.avi

Please how can I rename them?

Thanks and bye till later,

Renato


10/05-21 07:18
#2 : 10/05-21 08:49
David Lee
David Lee
Posts: 1125
1) Use Add method...

Add: <Inc Nr:20210510>,
At index: 0

2) Use Renumber followed by Replace methods...

Renumber...
Number position: 1
Change to: Relative to existing number: -1

Replace:
(.*,)(\d{4})
With: \2,\1\2
Use regular expressions






10/05-21 08:49
#3 : 10/05-21 09:18
Renato Di Pietro
Renato Di Pietro
Posts: 2
Reply to #1:
Many thanks!

Please what do you suggest I learn in order to write some codes
Java or Javascript?

As far as I may know Javascxript is mainly used for the web or am I wrong?

Thanks a lot and bye till later,

Renato


10/05-21 09:18
#4 : 10/05-21 14:41
David Lee
David Lee
Posts: 1125
Reply to #3:

I'm not very experienced with scripting languages - in the past I have mainly used Visual Basic for Applications (VBA) within Microsoft Excel. However I have learned a lot about JavaScript from using Advanced Renamer - in fact the reason that I answer so many queries on the Forum is as a learning exercise for JS and Regular Expressions!

As you say JavaScript was developed for the web - and is built in to web browsers. However there are some platform-based implementations such as node.js - which I have dabbled with since it is used for apps associated with the AudioMoth recording device. May be worth you having a look at that. An ex-colleague of mine used to swear by Tcl/Tk for some pretty high-powered work - but I don't have any personal experience.

Regarding JavaScript a good resource is www.w3schools.com (where you will also find an introduction to Python - which is used for scripting in the program QGIS).


10/05-21 14:41