I have a rename /function that creates a .txt named after filename
@nodeselect
filetype new .txt newname "norename:{file|noext}.txt"
I have vbs-script that redates a filename after the date -in- the filename
These are two separate actions.
I wonder whether it is possible to have them combined.
Vainly spent quite some time trying to figure this out myself.
For instance, simply putting them together won't work. The txt file is created alright, but
it seems the script is not selecting the newly create file and perform the redate action.
What is the filename you want to see in the end? I think that detail is missing.
If you want to include the current date in the filename you can use the {date} code, and do not need to use the Rename command or a rename script at all.
Leo, thanks.
It is a lengthy script and it takes out dates from the filename and changes the modified date based on the date in the filename.
So, the first step is to create an (empty) .txt file from a filename - that has a date in the filename.
e.g. FileXYZ-Blabla-15102016 163845.jpg
to-> FileXYZ-Blabla-152102016 163845.txt
the .txt obviously gets todays modified date.
then I run the script (a button) that changes mod date back.
It is a 'that would be nice'-thing if these actions could be combined.
Don't know if it is feasable without making things way too complicated though.
Is the .txt filename the same as the .jpg? (In your example, the date numbers are different. You have 15102016 as the .jpg and 152102016 as the .txt file.)
You need your script to create the text file and set the modification date of that file back to a date given in the jpg filename...is that right?
Thanks for getting back on this.
Frankly, I decided to let the idea rest.
Maybe.. maybe it would be feasible using a script, but I am not familiar with that and the amount of time to get familiar with scripting (if at all it would be feasible) would by far outweigh the extra (2nd) step I need to take: the idea was combining the two actions/steps that I have to take now, into 1.
It falls in the category 'Well, that would be really nice...' but as said, considering the efforts to make it work
it then falls in the category: "forget it"