Script to sanitise file names

Yes, I really messed up the instructions. I thought it’s clear that only the handler (i.e. on sanitizeText thru end sanitizeText) goes into the script library. However, it shouldn’t make a difference whether the 3 lines outside the actual handler are included or not, as calling a script library doesn’t run all the code in it. It only runs the code that’s inside the handler that’s called.

Tried that but it failed. Still not sure why ASObjC sometimes seems to work in a Smart Rule script but most often doesn’t over here. It would of course be a lot easier for everyone if it could simply be included in Smart Rule scripts.

1 Like