I use some AppleScript shebang file; I give them all the extension
.sh regardless of the shebang-line.
So for example
#!/usr/bin/env osascript get "Hello there"
Everytime I save this file, I get the error message:
File Extension Invalid
The filename extension ‘sh’ is not valid for this document type, which should be saved with a filename extension of ‘applescript’. Do you want to correct this discrepancy?
While this might be helpful in other situations, I think this warning should not be given when the first line of the file is a shebang.
Also: I’m curious how other people name their shebang scripts.