Changing legth of file name - How?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Changing legth of file name - How? 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?
Trickyt57
 
Posts: 60
Joined: Tue Sep 18, 2018 12:17 am

Re: Changing legth of file name - How? 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.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Changing legth of file name - How? 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.
Trickyt57
 
Posts: 60
Joined: Tue Sep 18, 2018 12:17 am


Return to Support