R
R
rebyatyonok2018-03-02 22:09:04
JavaScript
rebyatyonok, 2018-03-02 22:09:04

How are event handlers hung in JXA (JavaScript for Automation) on macOS?

Hey!
I want to attach a handler to an incoming message from the Messages application. From the documentation, I personally do not understand anything. Only a couple of words are written about the parameters, but what to hang it on and how - no. There is almost no information on handlers on the Internet, and if there is, it does not work. Maybe there are those who know?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Sokolov, 2018-03-02
@sergiks

A Good Cookbook: JavaScript for Automation Cookbook .
Listen to events via Messages - Preferences - AppleScript handler.
They sort it out on stackoverflow .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question