Skip to content

barad1tos/AppleScript-IDEA

 
 

Repository files navigation

How to AppleScript in IDEA

This plugin provides support for writing and executing scripts in the AppleScript language inside JetBrains IDEs.

1.0.0 — full Kotlin rewrite targeting IntelliJ 2024.3+ with the modern IntelliJ Platform Gradle Plugin 2.x. Existing 0.130 users get an in-IDE auto-update from Marketplace.

Working with scriptable applications

  • Use predefined Live Templates: “tellap”, “useapp” and create your own:

"tellap" live templete installed applications completion

  • Use Intention Action for creating application dictionary if the application was not found:

add_dictionary.png

Choose either the application bundle or application dictionary file if the application is not installed, but its dictionary file is available (xml or sdef extensions):

choose_dictionary.png The action is also available via File menu (File | Load Dictionary).

For example, you can choose dictionary file to load when working on Windows or Linux. Running scripts will not be possible, but IntelliSense will work:

browse_doc.png

run.png

Use other IntelliJ IDEA features while working with code:

dark_preview.png

There are still some fixes TODO:

  • parser tuning, including case-insensitivity
  • resolve for some cases with different visibility scopes in scripts
  • auto-formatting of generated dictionary file
  • code generate action for common constructs (user handlers, OS interaction scenarios, other statements)
  • your reports and suggestions

Download

About

AppleScript support for IntelliJ IDEs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Kotlin 72.3%
  • Java 16.6%
  • AppleScript 7.3%
  • Lex 3.5%
  • Other 0.3%