###How to Reference an App in AppleScript and JXA
Note: Most of this, if not all, apples to both AppleScript and JXA. I will use AppleScript in most of the examples.
tell application "Some App Reference" end tell
is the same as:
var myApp = Application("Some App Reference");
where “Some App Reference” is defined in this Apple guide: