AppleScript as JavaScript plugin
Hi, guys.
I'm new to IntelliJ and I think I've got most of my issues worked out but there is one thing that's kind of bugging me. I'm currently using the AppleScript plugin to write scripts for my Mac and its fine. But more and more I've been writing these as JavaScript rather than in the classic AppleScript language. JavaScript is quite a bit more intuitive if you are a programmer and even after many years of scripting with it, I've never gotten the hang of AppleScript.
The AppleScript plugin obviously isn't really much of a help when it comes to writing these scripts. I had hoped that I'd be able to use the Language Injection feature to simply write the code as JavaScript in an AppleScript file but no dice. It doesn't appear to be an option. I even have to go to the terminal to test the scripts because osascript needs the language option to be set.
Is there a decent plugin for writing JavaScript for this purpose?
Thanks,
Tom S.
Please sign in to leave a comment.
Hello Tom,
The language injection feature is provided by each language plugin implementation. For this case it should be provided by AppleScript plugin. I've filled a request for such support in the plugin tracker. I hope will have time to implement it soon :)
Please note that for the JavaScript injection to work IDE should have JavaScript plugin enabled (i.e. not available in Community Edition).
Gotcha. Thanks for the help.
Tom S.