Example - Using a Device State for a Conditional IF

Posted on
Fri Mar 03, 2023 3:46 pm
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Example - Using a Device State for a Conditional IF

Here's a sample shortcut that shows how to access a device state and use it's value to fire a conditional IF statement.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Mar 10, 2023 1:41 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

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

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!

Posted on
Fri Mar 10, 2023 2:36 pm
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

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

You *do* like playing with fire, don't you?

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Mar 11, 2023 11:42 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

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

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 1451 times

Posted on
Sat Mar 11, 2023 2:24 pm
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

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

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.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Mar 14, 2023 6:24 am
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

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

That could be it. I'm maxed out on Big Sur on a 2015 MacAir Client

Posted on
Tue Mar 14, 2023 6:36 am
DaveL17 offline
User avatar
Posts: 6751
Joined: Aug 20, 2013
Location: Chicago, IL, USA

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

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).

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Apr 02, 2023 12:41 pm
ryanbuckner offline
Posts: 1080
Joined: Oct 08, 2011
Location: Northern Virginia

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

So I bought a new Mac and this app came preloaded.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest

cron