I'm exploring the new JavaScript Automation feature in OS X (10.11) to automate a specific application that lacks a dictionary. My current approach involves using AppleScript with raw Apple Events as follows:
tell application "Bookends"
return «event ToySSQLS» "authors REGEX 'Johnson' "
end tell
My query now is: how can I convert this functionality into JavaScript? I've been unsuccessful in finding any resources on the Javascript OSA API for sending and receiving raw Apple events.
A potential workaround could involve executing an AppleScript from the shell, but I would prefer utilizing a more conventional API.