Verstehe, prinzipiell sollte das auch mit System Events gehen…
bei mir auf Mojave funktioniert das allerdings nicht. Ich kann die Position lesen aber nicht verändern
Eine andere Möglichkeit gibt es mit AppleScript nicht.
Show Plain Text
- tell application "System Events"
- tell process "Safari"
- tell (first window whose name starts with "Web Inspector")
- set value of attribute "AXPosition" to {200, 200}
- end tell
- end tell
- end tell
Eine andere Möglichkeit gibt es mit AppleScript nicht.