Skip to content

JXA-userland/editor-integrate-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Editor integrate example repository

Usage

You can try to open this repository with Visual Studio Code

git clone https://github.com/JXA-userland/editor-integrate-example
cd editor-integrate-example
npm install
vscode .

limitation

Some obejct type is any. It means that auto-complete work specific object like Application("System Events").

For more details, see @jxa/types and @jxa/sdef-to-dts.

Run code

osascript -l JavaScript ./example-jxa.js

Setup steps manually

  1. Create package.json
  • $ npm init --yes
  1. Install @jxa/global-type
  • $ npm install -D @jxa/global-type
  1. Adding tsconfig.json file with the following configuration should get intelligent code completion working.

tsconfig.json:

{
  "compilerOptions": {
    "allowJs": true,
    "types": [
      "@jxa/global-type"
    ]
  },
  "include": [
    "**/*.js" // <= this scope is integrated with @jxa/global-type
  ]
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published