I'm working with an AppleScript that turns off (but does not quit) Hazel. The script works fine but generates a syntax error.
Here's the part of the code causing the error:
tell application "System Events" tell process "System Preferences" set frontmost to true click radio button "Info" of radio group of window "Hazel" end tell end tell
And here's the error:
System Events got an error: radio button "Info" of radio group of window "Hazel" of process "System Preferences" doesn’t understand the “click” message.
I'm sure there's a simple fix, but I'm new to AppleScript and not much of a programmer. Any help would be greatly appreciated.