Closed matschaffer closed 12 years ago
You should specify the path to open or use spawnp.
Spoon.spawn('/usr/bin/open', '-a', 'Finder', '/Applications')
Spoon.spawnp('open', '-a', 'Finder', '/Applications')
I suspect that part of the reason you are having a problem is that Spoon doesn't handle error codes returned by _posixspawn so you can't easily tell when it fails. I have a fix for this here: 9baec25d165bbb5568f378c62984c27a5d44bc6a
The errno fix was incorporated some time ago, and the remainder of this issue is just misuse.
I'm guessing it has something to do with these commands being mac-specific, but I thought I should bring it up since we tripped over it working on redcar.
Here's a sample script that illustrates the issue on rev 560066: