- Code: Select all
tell application "System Events"
keystroke "c" using {control down, option down, command down}
end tell
However, I'm receiving an error message from Hazel when I attempt to run this. Any advice on what I might be doing wrong?
Moderator: Mr_Noodle
tell application "System Events"
keystroke "c" using {control down, option down, command down}
end tell
Mr_Noodle wrote:What is the error message you are seeing?
Mr_Noodle wrote:Check the logs. Go to Help->View Logs and see if you can find more details of the error there.
Mr_Noodle wrote:That means you need to give Hazel permissions. Launch System Preferences/Settings and go to Security & Privacy. Select Accessibility and add/enable Hazel in that list. Also, check the Automation list.
Mr_Noodle wrote:It's also in System Settings/Preferences in the same list with Accessibility.
Mr_Noodle wrote:Can you post a screenshot of how it looks in the Accessibility settigns?
Mr_Noodle wrote:Yes, enable that as well. It's horribly named because of Apple's "security" requirements. It really should be handled by enabling Hazel by itself but the OS is buggy in that regards and sometimes exposes these internal processes.