Question Is there a script to add the "Date Modified" to the beginning of an image file's name? (Mac)

  • Hi all, there are some hacked accounts posting viruses within zip links on gofile.
    Please report these posts when you see them.
    DO NOT reply to them, this just makes it harder for us to clean up and may get your account banned by mistake.

NoodzHunter

Bathwater Drinker
Mar 12, 2022
426
13,888
1,422
0fya082315al84db03fa9bf467e3.png
I have ripped a couple OF pages and when you are done, you obviously just end up with a ton of image files. HOWEVER, I want to add the "Date Modified" to the beginning of the file name. Why you ask.... with the ripper I use, the "Date Modified" corresponds with the date of the post. I want to organize my files so they group the images by post.

Example of what I am working with:

Please, Log in or Register to see links and images

Organizing the files by "Date Modified" put the images in sequence by the date of the post!

Now how do I get that "Date Modified" at the beginning of the image Name?

This is what I want it to look like:


Please, Log in or Register to see links and images


Or is there a better OF ripper that does it automatically?
 

bigelelya

People Observer
Nov 17, 2022
366
6,486
1,318
0fya082315al84db03fa9bf467e3.png
I made a quick Python script for you. If you don't want to make any modifications, simply create a folder called 'files' and put the file you want to rename there. Then run the script in the same directory as the folder (not inside the files folder).

Please, Log in or Register to see links and images