removing a final space from a file/folder name using AppleScript
Hi all,
I'm a network admin with three file servers, all hosting staff shared areas that date back to 2003 or so, sometimes even further. We've started using a backup program that kicks up errors and file/folder duplicates every time it finds a file or folder with a space at the end of the file or folder name. Basically I need to figure out some method of searching all files and folders (and subfolders etc) within a certain directory, finding those that contain a space as the final character and removing that space, without removing all the spaces further back in the name.
I would say I'm an applescript novice, but I'm not even that - I'm less than novice. I'm the novice's apprentice's tea boy. So please help - I can't face manually searching every single last file and folder and renaming them to see if there's a terminal space. My backup program tells me which files they are, but there are over 3000 on one server alone - I have other things I need to do over the next 2 years, lol.
Thanks in advance,
Matt