• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

System 7 Utility to Sanitize File Names for Uploading?

olePigeon

Well-known member
Does anyone know of an easy drag & drop utility for System 7 that can sanitize file names? Looking for something that can remove special characters and replace spaces with underscores. I know Fetch does this automatically when you upload a file, but looking for a utility that can do that on its own.
 

Chopsticks

Well-known member
im not sure if this will do what you are wanting as I haven't used it before but a quick search on macintoshgarden.org came up with this:

 

mikes-macs

Well-known member
If you know AppleScript, it’s fairly easy to create a script to automate tasks like this.
Some example scripts are available.
 

olePigeon

Well-known member
@Chopsticks Ah, thank you.
@mikes-macs I forgot about that. And I am using System 7.1.1 Pro, so I do have AppleScript. I could make a Droplet.

It also occurred to me that I could just do it on a modern computer as well since the file has already been BinHexed. Might as well do it in AppleScript. I've found that scripts are surprisingly compatible between modern and vintage Macs, so long as you restrict it to the older vocabulary set.
 

olePigeon

Well-known member
@Chopsticks Oooo. That Drop•Rename worked perfectly. Thank you. I can create a whole list of rules. Now it'll strip ™, •, ®, ß, and ƒ from names and replace spaces with underscores. I'm adding it to my tool kit. :)
 

mikes-macs

Well-known member
I used to enjoy writing AppleScripts to automate repetitive Finder activities. Many shareware products came from scripting.
 

Chopsticks

Well-known member
Macintosh Garden to the rescue again, glad I was able to help point you in the right direction for what you needed
 
Top