Comments (2)
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 function ()
(and possibly changing all of the osa() functions to ES5) would fix it.
Alternatively, using the Babel API in osa2 would also fix it: yunyu/osa2@38bdc2c
from osa-imessage.
The module works as-is on macOS 10.13, so I guess ES6 was added to osascript
recently. I like the babel solution; if you PR it I'd be more than happy to merge it.
from osa-imessage.
Related Issues (20)
- Are you using this for anything? HOT 2
- Get list of recent chats HOT 1
- Move to async/await and node-sqlite HOT 1
- Listening for messages only emits messages sent by me HOT 4
- Get name from handle [REQUEST] HOT 1
- Unable to send text HOT 11
- Problems installing HOT 1
- NodeNoob - nameForHandle returns "[object Promise]" HOT 2
- Any way of changing the account that sends the message? HOT 1
- Feature request: support sending file attachments HOT 4
- Can't read messages on Mojave 10.14.2 HOT 2
- What is the `Application` function? HOT 3
- cannot find module error HOT 2
- Cant send messages on macOS (14.2.0) HOT 3
- Cannot listen for messages on 10.15.4 HOT 1
- can't install on macOS 12.3 (Monterey) HOT 2
- Seems very broken on latest macOS (12.4) HOT 1
- Is this still active?
- Created a fork for newer versions and sending files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osa-imessage.