Page 1 of 1

Changing legth of file name - How?

PostPosted: Thu Jun 27, 2024 10:03 am
by Trickyt57
Some of my files are not being processed due to the file name being too long. I get the following error message: Error Domain=NSPOSIXErrorDomain Code=63 "File name too long"

So I want to write a rule to shorten the file name, but there is no option like "If length of files name exceeds..."

Any ideas other than manually changing each file name?

Re: Changing legth of file name - How?

PostPosted: Fri Jun 28, 2024 8:35 am
by Mr_Noodle
A feature like this is in the feature database but can't say if/when it will be implemented. You would probably need to write a script to do it now.

Re: Changing legth of file name - How?

PostPosted: Sun Jun 30, 2024 11:17 am
by Trickyt57
I found a work around.

By automatically moving all files to a new folder after processing, only the file names which were too long are left behind.

I then run a "re-name" command on all files which are more than one day old. They are renamed with the pattern "# extension". (i.e. renamed with a sequential number). I can then process them normally.