Stephen_C Posted February 9, 2023 Share Posted February 9, 2023 This simple workflow runs a timer in your Mac menu bar for the number of minutes you specify. The only dependency is a macOS Shortcut. I apologise that, because of my inability to work out how to package it with the workflow allowing you automatically to install it, you have to write it yourself. It looks like this: There is further guidance in the workflow User Configuration. GitHub download link. Stephen Link to comment
sepulchra Posted February 9, 2023 Share Posted February 9, 2023 (edited) Stephen, I'm guessing you have tried this but is there a way to use applescript to set timers so you would have to rely on the shortcuts app? EDIT just answered my owner question. No applescript for timers in the clock app. Damn Ventura! Edited February 9, 2023 by sepulchra Link to comment
Stephen_C Posted February 9, 2023 Author Share Posted February 9, 2023 7 minutes ago, sepulchra said: I'm guessing you have tried this Yes - you clearly know me by now. 😀 7 minutes ago, sepulchra said: No applescript for timers in the clock app. Indeed. Stephen Link to comment
sepulchra Posted February 9, 2023 Share Posted February 9, 2023 (edited) crazy thought.... would there be a way to use Siri? under accessibility one can type to siri and run commands, might there be a way to applescript siri to set the timers? Edited February 9, 2023 by sepulchra Link to comment
vitor Posted February 9, 2023 Share Posted February 9, 2023 (edited) You can export shortcuts as files. Then you can check if a certain Shortcut is installed (only by name) and open the file (to install) if not. It’s how Calm Notifications works, though it does use code to give the feedback directly inside the Script Filter. My plan for SandwichTimer is to use this same technique for setting timers and alarms. Edited February 9, 2023 by vitor Fixed link sepulchra 1 Link to comment
sepulchra Posted February 9, 2023 Share Posted February 9, 2023 19 minutes ago, vitor said: You can export shortcuts as files. Then you can check if a certain Shortcut is installed (only by name) and open the file (to install) if not. It’s how Calm Notifications works, though it does use code to give the feedback directly inside the Script Filter. My plan for SandwichTimer is to use this same technique for setting timers and alarms. Can't wait for a new sandwichTimer! Link to comment
Stephen_C Posted February 9, 2023 Author Share Posted February 9, 2023 Thanks for that Vitor. I got as far as exporting the Shortcut and including it in the workflow folder (not yet in a released version) but was stumped at the installation process. Your link to Calm Notifications simply brings me back here on the forum and I can find no other references to it when searching the forum. I did look at the SandwichTimer workflow but (with apologies) the programming is well above my pay grade! I'm slightly inclined to release an update of the workflow including the Shortcut, and simply direct users in the User Configuration to the workflow folder to install the Shortcut manually from there. Is that so appallingly amateurish as to be completely undesirable? Stephen Link to comment
vitor Posted February 9, 2023 Share Posted February 9, 2023 23 minutes ago, Stephen_C said: Your link to Calm Notifications simply brings me back here on the forum Not sure what happened there. Link fixed. 24 minutes ago, Stephen_C said: I did look at the SandwichTimer workflow but (with apologies) the programming is well above my pay grade! It doesn’t use the Clock app yet, but a bespoke app. When it’s updated it will be completely rewritten. 25 minutes ago, Stephen_C said: I'm slightly inclined to release an update of the workflow including the Shortcut, and simply direct users in the User Configuration to the workflow folder to install the Shortcut manually from there. Have a Keyword connected to an Open File. That way you can instruct users to “run <whatever> to install the Shortcut”, which is more convenient. 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