Das Webinspector Fenster ist kein reguläres Fenster, das geht nur über einen Umweg…
in dem man Safari aktiviert und dann das Kürzel ⌥⌘I simuliert
Show Plain Text
- activate application "Safari"
- tell application "System Events" to tell process "Safari" to keystroke "i" using {command down, option down}