Hi folks, trying to make a Shortcuts Automation equivelant of the weekend App block on iOS here. When “Email” launch -> Check if it’s Sat / Sun -> If yes then give it an alert “Hey you shall rest” and launch “Netflix”.
I got the most part working, two remaining problems though:
The below shortcuts is used to check if today’s Sat (value=7) or Sun (value=0); For now I check it first whether it’s Sat and then using another If to check whether it’s Sun. How can I complete the task within one If condition? I tried writing it like “If Formatted Date is 0 or 7”, it doesn’t work.
I wish to have an “exit route” to use Email on weekends in case the flat is on fire. At the moment, whichever way I launch Email at weekends, the Automation will lead me to Netflix unless the Automation is de-activated. How can I jump out of this closed loop? Thanks!
If you find the menu choice too tempting then your in case of emergency hurdle is simply to remove the automation associated with opening the email app.
I’ve tried the choose from menu method, now got stuck in another infinite loop:
Automation triggered when Mail App launched → Menu appears for choices → Choosing the Mail option nonetheless → Switched to Mail, however triggering the Automation all over again → Menu appears for choices
If your menu choice is choosing not to open another app, does it not continue into Mail without trying to open it a second time?
Another alternative (to manually disabling in Shortcuts) if you wanted to have a less disruptive approach, you could check for the existence of a file - e.g. if you have to work one Saturday you write a file with that date into the Shortcuts file area; or you could have a special entry in your calendar for the day. You could create a second shortcut to set those up, and in each case they would just be temporary overrides meaning you wouldn’t need to remember to re-enable as you would for the manual enable/disable via the Shortcuts app.
Hi TJ. I’m really excited to try this but my newbie-ness is getting in the way. How do I install the script into Bitbar plug ins? I promise I’ve googled and searched before asking here.
Thanks again for the great work
Danny
To add a new script to BitBar, you’d put a script into the folder that you’ve designated for BitBar’s plugins. The menu bar icon even has an option to open the folder right from the menu bar.
Once the file is placed into that folder, it needs to be ‘executable’ (basically to tell the computer “this isn’t a file like a text document, it has commands in it.”)
So let’s assume your Plugins Folder is named “Bit Bar” and it inside your “Documents” folder.
The easiest way to make them executable is to go to the Terminal.app (in Finder, go to “Applications” and then “Utilities” folder).
Launch Terminal.app
Type:
cd "$HOME/Documents/Bit Bar/"
(If your plugins folder is named something else, replace the appropriate names above.)
Once you have done that, you can see a list of the files (to make sure you are in the right folder) by typing ls -l (note that those are lowercase Ls where ls stands for list and -l stands for “long”)
If you have a file called “MyScript.sh” in that folder and want to use it in BitBar, you need to make it executable, so you would type:
chmod 755 MyScript.sh
Then, using BitBar’s menu item, you would want to choose “Refresh All” to get it to show up in the menu bar.
So…
Now, having said all of that… what script are you trying to get into BitBar?
Thank you thank you! It’s the battery one.
I’ll get started on your stream deck ones right after that!
You can share with your congregation that you have fans in Israel too!
When the Automation is triggered, I am already brought from the Mail screen to the Automation / Shortcuts App screen. The menu and selection also happens on the Automation / Shortcut App screen. If I chose none action for one of the menu, then it finishes and stays in the Automation / Shortcuts App; If I chose menue action going to Mail, then it triggers a new Automation
I love the upcoming calendar button! Question (because I can’t figure it out) - it keeps dinging over and over and it’s driving me crazy. How can I turn this off without disabling the macro or paying ransomware?
Thanks for clarifying! I didn’t think I had any alerts turned on, but I did see the volume was up, so I’ve turned it down. I’ll see what happens today.
Thank you for responding to this message and for sharing everything on the podcast. It really has been wonderful and so helpful!