Tap the first 'Number' parameter and enter 0, then tap the second 'Number' parameter and enter 30. Tap Condition and choose 'is between' from the bottom of the list. Set up the If action (Image credit: iMore) This establishes the current date as a variable that can be used within the shortcut. First, you want to get the Current Date action. Next, we have the calendar actions, both of which can be found by searching for them when adding actions to your shortcut. I recommend setting its parameter to "Ask Each Time," which will appear on the action as "Device." This lets you choose whichever speaker or another audio source you want to play music through each time you run the shortcut. Here's how you build this shortcut, piece by piece.įirst, you'll want to grab the AirPlay, which is in the Scripting action menu under Device. While most of the year, this shortcut will play my Chill Mix on Apple Music, when we get to around Thanksgiving, that same shortcut will start playing Apple's Essential Christmas playlist. This includes the one I call 'Seasonal Tunes,' which uses the "If" action to determine what music should be played. I have several shortcuts centered around music. Let's take a look at how the If action can combine with calendar and music actions to create a contextual music player shortcut.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |