Also bei mir tritt der Fehler nur auf, wenn Safari im Full-Screen Mode ist...
bitte ersetze den ganzen System Events block probehalber durch
Show Plain Text
- tell application "System Events"
- tell process "Safari"
- try
- set theWindow to 1st window whose description of toolbar 1 of group 1 is "toolbar"
- set textValue to value of text field 1 of group 3 of toolbar 1 of group 1 of theWindow
- on error
- set theWindow to 1st window whose description of toolbar 1 is "toolbar"
- set textValue to value of text field 1 of group 3 of toolbar 1 of theWindow
- end try
- end tell
- end tell