Mike Outram Posted June 10, 2020 Share Posted June 10, 2020 Wondering if there's an Alfred shortcut to toggle off the trackpad on my Macbook when I'm typing? At the moment I'm plugging in a mouse and it's set up to disable the trackpad when it's plugged in. Would be ace to use a shortcut though Link to comment
Alan He Posted June 21, 2020 Share Posted June 21, 2020 AppleScript can do it. I create a workflow by AppleScript. https://github.com/alanhg/alfred-workflows/tree/master/mac-enhancer Toggle your trackpad on/off you can add a customize shortcut instead of keyword Link to comment
Mike Outram Posted June 21, 2020 Author Share Posted June 21, 2020 Hey thanks, Alan. This doesn't work for me at the moment though. Not sure why, but in case I'm missing something: I'm on Alfred 4, MacBook Pro 2017 touchbar. I get this notification in Alfred re the apple script: Link to comment
Alan He Posted June 21, 2020 Share Posted June 21, 2020 what's the notification? My workflow run fine on my mac MacOS is catalina 1 hour ago, Mike Outram said: Hey thanks, Alan. This doesn't work for me at the moment though. Not sure why, but in case I'm missing something: I'm on Alfred 4, MacBook Pro 2017 touchbar. I get this notification in Alfred re the apple script: Link to comment
Mike Outram Posted June 21, 2020 Author Share Posted June 21, 2020 I meant the text in the image: "For background app scripts..." I'm on Catalina too. Link to comment
deanishe Posted June 21, 2020 Share Posted June 21, 2020 7 minutes ago, Mike Outram said: "For background app scripts..." That means, basically, "Don't use Run NSAppleScript". It behaves weirdly, and it locks up Alfred until the script finishes. Unless your script just doesn't work properly in a Run Script action, you should never use "Run NSAppleScript". Link to comment
Alan He Posted June 22, 2020 Share Posted June 22, 2020 (edited) My concern is whether you have confirmed that trackpad is turned off or turned on, that is, whether it works. If it does not work, you should always prompt questions, for example, you can debug this workflow deanishe's advice is good,I will use run script instead of run NSAppleScript. but I think it's not cause of mike's problem Edited June 22, 2020 by Alan He Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now