Can AppleScript access browser tabs and execute javascript in them?

后端 未结 3 711
逝去的感伤
逝去的感伤 2021-01-31 19:47

I\'m curious if AppleScript can access each specific tab in a browser and execute some javascript in them.

Anyone have ideas?

3条回答
  •  面向向阳花
    2021-01-31 20:30

    Recently Google Chrome disabled the ability to execute JavaScript via AppleScript. I'm having trouble finding a reference link, but in Chrome Canary v59 it doesn't work and gives a message saying it's disabled, and I'm seeing it still work in Chrome v57 so it's got to be very new.

提交回复
热议问题