Jump to content

Toggle trackpad pinch & zoom

Recommended Posts

There's a years-old bug in macOS that causes pinch to zoom to stop working under heavy usage. For designers and video editors, this is an absolute productivity killer. It never gets fixed and the only workaround is disabling and enabling it again in System Preferences. Many of us need to do this 10+ times a day.


I would like to create an Alfred workflow that toggles this setting with the 'pinch' keyword, but I'm having trouble figuring out A. Whether this is possible and B. How to access that option.


Does anybody have some pointers? Thanks!

Share this post

Link to post

It should be possible, yes, with AppleScript. For example, if you use Script Editor to run:

tell application "System Preferences"
    reveal anchor "trackpadTab" of pane id "com.apple.preference.trackpad"
end tell

You’ll see you’re halfway there. We still need the code to select the specific tab and checkbox, but I’m too tired to think beyond that at this hour. You may also try Ask Different if you’re in a hurry. If you get the correct AppleScript code, it will be easy for us to help you construct the Workflow.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...