this solution does not work very well.
because it renames " (1)" to "_(1)".
next time, HFS will give again " (1)" because there's no file with such name.
and again, the script will try to rename it to "_(1)", but this one already exists.
the result is: the second time the file is not renamed.
you can
1. keep it as it is, if you like
2. delete the "_(1)" file before the rename
3. script the [upload name] event, that's totally different