- Code: Select all
Truncate/pad original name to exactly 20 characters with "_" padding.
Ask once for a user suffix default to "_SLB_".
Collect all labels that have dates parse all If they are strings instead of dates
excluding labels "System.DateCreated", "System.DateModified", "System.DateAccessed", "System.DateCreated",
including MediaInfo:Recorded_Date MediaInfo:Encoded_Date
alert on invalid date with label name, original file name and invalid date
sort dates in ascending date order
remove duplicate dates
dates in list should be formatted YYYY-MM-DD
alert on invalid date
Determine the oldest date if date is not available then default to 2999-12-01
set newCreated/newModified to oldest date.
Alert if oldest equals 2999-12-01.
Build folder path as YYYY_____MM\ from the oldest date.
build a list with descriptions and dates formatted YYYY-MM-DD including all found dates formatted YYYY-MM-DD with descriptions.
Truncate list if greater than 200 characters
alert if list is greater than 200 with list, "length=", test.
remove all invalid characters
it runs almost ok for the "fast" option (missing the last statement) need to do a little clean up.
With the "Reasoning" option I get a "No code returned" error.
With "deep thinking" option I get returned only the first portion of the code
Also could you please increase the timeout value, it is annoying to have it time out 2 or 3 times a day.
Thanks Steve