creating a custom keyboard shortcut to toggle accessibility item “Speak items under the pointer” on/off

Disclaimer: I'm not a developer, so please bear with me!

I’m looking for the best way to create a custom keyboard shortcut for apple’s accessibility setting to toggle “Speak items under the pointer” on/off.

From my research, it’s my understanding that you can use Apple’s ‘Automator’ or ‘Shortcuts’ app. I see both a “Run AppleScript” option and “Run JavaScript for Mac Automation”. Might anyone be able to provide me with a copy and paste script which can create this keyboard shortcut? (Suggestions on the best way to do this/app to use and non-developer friendly instructions would also be greatly appreciated! 😂)

Thank you in advance!

(If needed, I'm running Monterey 12.6 on a MacBook Pro with an M1 chip)

Hello, I love this idea of yours!

Shortcuts is a great way to run a collection of actions, and Shortcuts can indeed be triggered with keyboard commands. Alas, though, the setting for "Speak items under the pointer" is not exposed as an action for Shortcuts. If you could, please submit a request that this specific setting gets exposed as an action, you can use Feedback Assistant to do this https://developer.apple.com/bug-reporting/

Automator is a good idea, and some friendly volunteer with more knowledge may be able to contribute a sample script to do this, but I empower you to learn more about using Automator and AppleScript! Here are some links which may help you: https://support.apple.com/guide/automator/create-a-workflow-aut7cac58839/mac https://discussions.apple.com/thread/251336894

creating a custom keyboard shortcut to toggle accessibility item “Speak items under the pointer” on/off
 
 
Q