I am trying to make use of the new JavaScript Automation feature in OS X (10.11) to script an application that does not offer a dictionary. I have an AppleScript that interacts with that application using raw Apple Events, like so:
tell application "Bookends"
return «event ToySSQLS» "authors REGEX 'Johnson' "
end tell
Now my question is: how do I translate this to JavaScript? I cannot find any information on the Javascript OSA API to send and receive raw Apple events.
One possible workaround might be to call a piece of AppleScript through the shell, but I would prefer to work with a "real" API.