-
Notifications
You must be signed in to change notification settings - Fork 54
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
UnhandledPromiseRejectionWarning when sending message #24
Comments
To me, this looks like https://github.com/wtfaremyinitials/osa2/blob/master/index.js#L6 outputting ES6, which is presumably not supported by osascript. It looks like changing all the arrow functions to Alternatively, using the Babel API in osa2 would also fix it: yunyu/osa2@38bdc2c |
The module works as-is on macOS 10.13, so I guess ES6 was added to |
When running this script:
I get this output in the terminal:
I am running Node v8.9.4 and OS X 10.11.6.
The text was updated successfully, but these errors were encountered: