idleberg / vscode-applescript

Language syntax and snippets for AppleScript
https://marketplace.visualstudio.com/items?itemName=idleberg.applescript
MIT License
70 stars 8 forks source link

Support osascript shebang #27

Closed rattrayalex closed 3 years ago

rattrayalex commented 3 years ago

Summary

A file with no extension, but with an osascript shebang, should be highlighted as AppleScript:

#!/usr/bin/env osascript

tell application "Terminal"
  do script ""
end tell

Motivation

I have a ./dev script that I don't want to add a .applescript extension to.

Describe alternatives you've considered

Additional context

idleberg commented 3 years ago

Great idea, added in v0.21.0

rattrayalex commented 3 years ago

That was quick – thank you!