idleberg / vscode-applescript

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

Error: command 'extension.jxa.run' not found #16

Closed TheNewbieWoodworker closed 5 years ago

TheNewbieWoodworker commented 5 years ago

I have v0.16.0 installed. I installed it via VSCode's Extensions tab/sidebar. Obviously I'm running on a Mac.

image

When I use the command "JXA: Run Script", I get this error:

command 'extension.jxa.run' not found

Any ideas? Thanks.

idleberg commented 5 years ago

The command is only available when working in "JavaScript for Automation (JXA)" has been selected as language mode.

Screenshot 2019-09-03 at 10 12 39

This is done automatically, when your document has the file-extension *.jxa (which might be unconventional, I don't know). When working with *.js files you need to switch the syntax manually.

TheNewbieWoodworker commented 5 years ago

Thanks! Solved the problem. Nice work, byt the way, and I really appreciate it!