Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacProRumours

macrumors newbie
Original poster
Oct 18, 2021
13
3
SPELL-check a whole volume?

Has anyone found a need to check the spellings of file-names: over a whole volume?

If so, any ideas how they might be spell-checked in one go, in a similar way as checking a single textual file?

Ideally, also for any Comments.

I'm sure that some, if not many, of my file names have incorrect spellings.
 

Slartibart

macrumors 68030
Aug 19, 2020
2,917
2,635
if you just want to spellcheck: you can easily write out all names of files (or e.g. only the names of files of a certain type) from a folder or volume to a text file and spellcheck there.

Can you elaborate what kind of orthographic errors you are referring to?
I for example do not use file or folder names with spaces, but I tend to use something like longer, descriptive, composited names or even phrases -> "Meanwhile_in_some_ other_place", "BioIng-BachelorStudents-ExamenQuestion_1.Trimester.tex" et cetera. To spellcheck these a bit more scripting is required.
 

frou

macrumors 65816
Mar 14, 2009
1,325
1,833
If you're at all familiar with programming, it's probably possible to do this as a shell-script one-liner in Terminal.

Take some inspiration from this wonder 80's video 😀 and probably starting with the find command.

 

f54da

macrumors 6502
Dec 22, 2021
422
145
Do you really need it over the entire volume? That's going to bring up a lot of false positives. Most likely you only need it in documents/desktop/downloads/etc. As frou mentioned using find + grep against /usr/dict after removing extension might work.

But I'm a simple person and the clearer solution for me would be to wrap the matching part in a python script (you can keep the entire dict in memory and easily to preprocessing such as splitting by underscore, etc.) Tbh this is the kind of glue task chatGPT should do well at.
 

MacProRumours

macrumors newbie
Original poster
Oct 18, 2021
13
3
Do you really need it over the entire volume? That's going to bring up a lot of false positives. Most likely you only need it in documents/desktop/downloads/etc. As frou mentioned using find + grep against /usr/dict after removing extension might work.

But I'm a simple person and the clearer solution for me would be to wrap the matching part in a python script (you can keep the entire dict in memory and easily to preprocessing such as splitting by underscore, etc.) Tbh this is the kind of glue task chatGPT should do well at.
You're right, it would only be needed for the 3Ds: Documents, Desktop and Downloads.

As it's a bit beyond me, I had wondered if someone else had come up with a script or a set of terminal commands to accomplish this. Or, if some unknown utility programme had such a facility built-in.

The object would be, in later a Find operation in the Finder, to avoid missing things that some time ago were misspelt due to typos, hurried key-boarding etc.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.