I wish to access the following from a VBScript within the renaming dialog scripting facility: {createddate} and {createdtime}
Any idea how I could achieve that?
Many thanks for any reply...
I intend starting with scripts in this very useful post:
@Leo thanks. I tried ths below and got very unexpected results.
Was this what you meant? Below
Sorry for screenshot was not sure how else I could show this:
You need to format the date/time to the way you want it to look in the filenames.
Default date/time formatting uses : between the time parts. e.g. 14:22:15 is the current time for me. That won't work in a filename as : characters aren't allowed.
Use DOpus.Output to print what variables contain to the output window below the script editor. That should make it clear what your script is doing and what needs to be changed.
My electricity is being re-wired today and I barely have semi-working internet access at the moment so your best bet is to find some example scripts or read through the manual for the different scripting objects.
All the getNewNameData properties are read-only. The script changes the name by returning a string, not by modifying anything within getNewNameData.
The old extension is given to you in getNewNameData.newname_ext or getNewNameData.newname_ext_m (the second one is usually best, depending on what you're doing). Append that to the string you are returning if you want to keep it as the filename's extension.
This is my code as it stands.
Below. Still extension is missing. getNewNameData.newname_ext and getNewNameData.newname_ext_m seem to be giving empty outputs..?
It's possible the settings in the Rename dialog are generating an empty name which is then passed into your script.
What does the Rename dialog look like?
Please also show some example things which are being renamed as the inputs affect the outputs. For example, if you are renaming folders then they won't have extensions, even if there are dots in the folder names.