OSX Associate a shell script with a file extension?
问题 I want to associate the .exe file extension with a shell script that launches wine. What is the best way to do this? From what I've gathered, I need to create an AppleScript that will call wine, but how do I get the name of the input file in the AppleScript? If there is a better way to do this, let me know, but as far as I know this is the best way. 回答1: You can use an AppleScript application to do this - files are passed to the open handler, the same as a droplet, for example: on open