Successfully launching a shell script from Finder when the path has a space in it

Solution 1:

It turns out I was doing something wrong.

I erroneously believed the error message was caused by Mac OS X executing the script.

The reason this error was appearing was because inside my script I was executing something without escaping the space. Woopsie!