Support for "Allow JavaScript from Apple Events"
-
I upgraded Vivaldi to 2.0. Then My AppleScript shows a following error.
Error on line 5: Error: Executing JavaScript through AppleScript is turned off. To turn it on, from the menu bar, go to View > Developer > Allow JavaScript from Apple Events. For more information: https://support.google.com/chrome/?p=applescript
My script is below.
var vivaldi = new Application('Vivaldi'); var active_tab = vivaldi.windows()[0].activeTab(); active_tab.execute({ javascript: "alert('test')" });
I think this is because Vivaldi 2.0 upgrade chromium to 69 from 65.
The error message suggest "Allow JavaScript from Apple Events".
However, This setting is for Chrome but Vivaldi seems not support this setting.How can I enable javascript execution in AppleScript wit Vivaldi?
-
@sztmsk A bug has been opened for this issue and the developers are working on a fix.
-
@xyzzy Thanks. Where can I track the bug fix?
-
@sztmsk No need to. "Allow JavaScript from Apple Events" has already been implemented in the Vivaldi Snapshot builds -- the option can be toggled under the Tools menu. You'll see it when Vivaldi 2.1 gets released in (hopefully) the not-too-distant future.
-
Ppafflick unlocked this topic on
-
Ppafflick moved this topic from Vivaldi for macOS on