On Mac OS X 10.11.4 and below:
The option to
Allow Javascript for Apple Events is enabled by default.
On Mac OS X 10.11.5 and up:
Follow the below steps to manually enable
Allow Javascript for Apple Events
- Launch Safari
- From the menu, click Safari > Preferences
- Select the Advanced settings.
- At the bottom of the list of options, enable the option to Show Develop menu in menu bar
- The Develop option will now be visible in the Safari menu bar.
- From the Safari menu, click Develop.
- Click to enable Allow JavaScript from Apple Events.