This script is generated by the recording button and just going to the finder. It works well on Mac OS 8.1.
I tried different scrips and I always get an error. However, when a script is pre-compiled, everything works well. It is just the compiler that fails here :(
Maybe something is messed...