Page 1 of 1

Example - Using a Device State for a Conditional IF

PostPosted: Fri Mar 03, 2023 3:46 pm
by DaveL17
Here's a sample shortcut that shows how to access a device state and use it's value to fire a conditional IF statement.

Re: Example - Using a Device State for a Conditional IF

PostPosted: Fri Mar 10, 2023 1:41 pm
by mundmc
Thank you for this, that's crazy I just started getting back into Shortcuts again as I have FINALLY figured out whole house audio announcements without lag, and I want to be able to order my children around from five different zones at once!

Re: Example - Using a Device State for a Conditional IF

PostPosted: Fri Mar 10, 2023 2:36 pm
by DaveL17
You *do* like playing with fire, don't you?

Re: Example - Using a Device State for a Conditional IF

PostPosted: Sat Mar 11, 2023 11:42 am
by ryanbuckner
I feel like a noob here. I don't know anything about shortcuts but going to the App Store on my Mac, the shortcuts app is only for phones. What am I doing wrong to start?

shortcuts.png
shortcuts.png (66.96 KiB) Viewed 1658 times

Re: Example - Using a Device State for a Conditional IF

PostPosted: Sat Mar 11, 2023 2:24 pm
by DaveL17
What version of macOS are you using? The shortcuts app for macOS has only been around since about mid-2021 and, I believe, only available for Monterey (12.x) and Ventura (13.x).

Someone please correct me if that's wrong.

Re: Example - Using a Device State for a Conditional IF

PostPosted: Tue Mar 14, 2023 6:24 am
by ryanbuckner
That could be it. I'm maxed out on Big Sur on a 2015 MacAir Client

Re: Example - Using a Device State for a Conditional IF

PostPosted: Tue Mar 14, 2023 6:36 am
by DaveL17
ryanbuckner wrote:
That could be it. I'm maxed out on Big Sur on a 2015 MacAir Client

Sounds like that's the case. I've added a note to the wiki to mention this.

I know where you're coming from. I only recently upgraded from a 2012 MBP on Catalina (no Shortcuts app there either).

Re: Example - Using a Device State for a Conditional IF

PostPosted: Sun Apr 02, 2023 12:41 pm
by ryanbuckner
So I bought a new Mac and this app came preloaded.