applescript-result

0.1.0 • Public • Published

applescript-result Build Status

Convert an AppleScript result to its equivalent JavaScript representation

Installation

$ npm install applescript-result

Usage

const applescriptResult = require('applescript-result')
 
applescriptResult('{1, 2, 3}')
// => [ 1, 2, 3 ]
 
applescriptResult('{product:"pen", price:2.34}')
// => { product: 'pen', price: 2.34 }

Supported data types

Related

  • applescript: Run AppleScript and get the result as a native JavaScript data type
  • run-applescript: Run AppleScript and get the result as a string
  • node-osascript: Run AppleScript and process the result using PEG.js
  • run-jxa: Run JXA (JavaScript for Automation) code and get the result

Package Sidebar

Install

npm i applescript-result

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

26.9 kB

Total Files

6

Last publish

Collaborators

  • sonicdoe