applescript-result
v0.1.0
Published
Convert an AppleScript result to its equivalent JavaScript representation
Downloads
4
Maintainers
Readme
applescript-result
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