Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Command failed: /usr/bin/osascript -l JavaScript #4

Open
northamerican opened this issue Oct 25, 2018 · 1 comment · May be fixed by #5
Open

Error: Command failed: /usr/bin/osascript -l JavaScript #4

northamerican opened this issue Oct 25, 2018 · 1 comment · May be fixed by #5

Comments

@northamerican
Copy link

Node version: v8.9.4
OS: macOS 10.13.6

I made a script containing the one in the README example and ran it with node index.js.
osa2 works fine but i'd like to use jxa.

The script fails with:

➜  app node index.js
/Users/home/Documents/app/node_modules/blocking-await/index.js:27
        throw result
        ^

Error: Command failed: /usr/bin/osascript -l JavaScript
422:445: execution error: Error on line 17: ReferenceError: Can't find variable: obj (-2700)

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)
    at Function.module.exports.loopWhile (/Users/home/Documents/app/node_modules/deasync/index.js:72:22)
    at wait (/Users/home/Documents/app/node_modules/blocking-await/index.js:20:13)

not sure how to continue. thanks.

@yaozhenx
Copy link

yaozhenx commented Mar 9, 2019

Same issue here. This package is not usable at all. Anyone take a look please?

@dnicolson dnicolson linked a pull request Apr 1, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants