jxa-common-used
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

jxa-common-used

d.ts for common used app

npm version npm downloads npm license

Install

$ pnpm add jxa-common-used

Usage

pnpm add -D @jxa/types @jxa/global-type jxa-common-used

tsconfig.json

{
  "compilerOptions": {
    "types": ["@jxa/global-type", "@jxa/types"]
  }
}

or use triple slash directive

/// <reference types='@jxa/global-type' />
/// <reference types='@jxa/types' />

in some-script.ts

#!txa

/// <reference types='@jxa/global-type' />
/// <reference types='@jxa/types' />

import { PathFinder } from '..'

{
  const app = Application<PathFinder>('Path Finder')
  console.log((app.selection() || []).map((x) => x.posixPath()))
}

{
  const app = Application('Finder')
  console.log((app.selection() || []).map((x) => x.url()))
}

Changelog

CHANGELOG.md

License

the MIT License http://magicdawn.mit-license.org

Package Sidebar

Install

npm i jxa-common-used

Weekly Downloads

3

Version

0.0.3

License

MIT

Unpacked Size

54 kB

Total Files

8

Last publish

Collaborators

  • magicdawn