I guess this would be some scripting thing. The underlying issue is, that time stamps of folders are getting messed up, when the folders are copied at some later time to a different machine, sometimes leaving those folders non-chonological.
In that case i have to go to the metadata panel and change them all by hand, which isn't so convenient when having lots of folders to process.
My dates are created in the dd-MMM-yy format in german language (if this matters to the script), so the task would be to fetch that date string and somehow change the folder's created date to this value. As far as i can guess, there is no other way to get the original dates, except from the folder's names, once the time stamp has been changed through copying at some later time.
I guess you can only test it, if you have your folders name in the dd-MMM-yy format AND in the german spelling, which might not be the case, without making some changes to the script.
Just checked your profile, so you can use it, if you're using the german time format like 16-Aug-23.
Suppose, your time stamp is 17-Aug-23, you can use the script, after having placed the script in the Script Addins folder and have uncommented that line (// cmd.RunCommans(cmdLine)). If you then run the SetTimestampsFromFilenameGerman command from the command line or from a button, your created time stamp will be set accordingly to your folder's name.
@abr , thank you for replying. I am so interested in that script, because I recently wrote a "function" (outside of DOpus) transforming various strings into "YYYY-MM-DD" (ISO-format? with RegEx) and will soon be wanting a script within DOpus to transfer
file-names to metadata Title
year to metadata Year
I would really like to learn how to create a script in DOpus. In fact, I would like to also learn how to begin writing a script.
I have what one might call a "Subway Knowledge" of things, like when I moved to Berlin, I knew how to get from A to B, got to know the sourroundings of A and B, and there somewhere was a C. I could reach all these points by subway, but I could not navigate the streets.
Nothing spectacular, just the basic steps. Know how to run a script command, know where to find the logs and how to read them, know how to check if the script will do what you expect it to do, know how to unlock a script (because in its original state, it shoots only blanks for safety).