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
  1. activate application "Safari"
  2. tell application "System Events" to tell process "Safari" to keystroke "i" using {command down, option down}
----------
Gruss

Stefan