AppleScript:
System Events got an error: NSReceiverEvaluationScriptError: 4
This is somewhat of a generic message; I received it when running an AppleScript (v1.9.3, OS 10.3.6) with the statement
click button "Appearance" of tool bar 1 of window 1 of ¬
application process "Safari"
The solution for this was to
1. Open "System Preferences..." in the Apple Menu.
2. Select "Universal Access"
3. At the bottom of the window, click on Enable access for assistive devices
Note that you can also test and set this check box within the script, and if I were marketing this script
for commercial use, I would, but for my immediate purposes it was much easier to check in on manually.
TextEdit:
Document can no longer be saved using its original Western (Mac OS Roman) encoding.
Please choose another encoding (such as Traditional Chinese (Mac OS)).
|