I have a repetitive task I would like to automate.
I download four files and I want to rename them based on their date modified. (I use iMacro to download the files for me, but because the website I download from uses JS to initiate the DL, I cannot get iMacro to rename them).
Assumptions:
- It will always be four files
- The original four file names will change each time (there is not pattern to these names)
- The names I want to change to, will always be the same, based on the date/time modified (which is really date/time downloaded))
So as an example I download the following four files to my download folder:
Name Date Modified
abc123.csv Today, 8:50:32 pm
def456.csv Today, 8:50:51 pm
ghi789.cv Today, 8:51:03 pm
jkl012.csv Today, 8:51:12 pm
I want to rename these four files from the earliest date modified to the latest date modified to (these names will never change):
earliest.csv
earliest1.csv
later.csv
latest.csv
Ultimately each time I download the four files and run this script it will begin to rename each file based on the earliest file to whatever I want and then go to the next one and so on.
Any ideas?
Matt
I download four files and I want to rename them based on their date modified. (I use iMacro to download the files for me, but because the website I download from uses JS to initiate the DL, I cannot get iMacro to rename them).
Assumptions:
- It will always be four files
- The original four file names will change each time (there is not pattern to these names)
- The names I want to change to, will always be the same, based on the date/time modified (which is really date/time downloaded))
So as an example I download the following four files to my download folder:
Name Date Modified
abc123.csv Today, 8:50:32 pm
def456.csv Today, 8:50:51 pm
ghi789.cv Today, 8:51:03 pm
jkl012.csv Today, 8:51:12 pm
I want to rename these four files from the earliest date modified to the latest date modified to (these names will never change):
earliest.csv
earliest1.csv
later.csv
latest.csv
Ultimately each time I download the four files and run this script it will begin to rename each file based on the earliest file to whatever I want and then go to the next one and so on.
Any ideas?
Matt