Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wormiedk

macrumors newbie
Original poster
Nov 24, 2010
5
1
In the new shortcuts app workflows can be launched when charging the phone. Can anyone figure out how to make a workflow only run if I start charging after a given time?
 

wormiedk

macrumors newbie
Original poster
Nov 24, 2010
5
1
Thanks! Could i ask how you add the first Block? I have searched but have not been able to find it myself
4B114CC2-C5C1-4C10-AE6F-E435879354AF.jpeg
 

Ansath

macrumors demi-god
Jun 9, 2018
4,460
4,827
England

ZEEN0j

macrumors 68000
Sep 29, 2014
1,560
715
The first action is "adjust date". Tap the first parameter and choose get start of day.

@Ansath You need to setup the automation yourself (you can't share automations) and then either recreate my shortcut inside of it or choose the action "run shortcut" and pick the one I made.
 

Sergei Shcherbakov

macrumors newbie
Jul 16, 2020
5
2
Hey,

Thanks for the great shortcut and I should clarify one thing:

Put the desired action just in between comment and otherwise command. And then you can go to automation and set the automation using this shortcut.

I've created screen recording that explains, hope it helps.

P.S.

I'm wondering is it possible to create location based automation? E.g. If location is home > launch Calm app or if location is office > launch spotify.
 

Attachments

  • shortcut_howto.mov
    25.3 MB · Views: 85

hepcat72

macrumors newbie
Apr 23, 2010
14
0
Any ideas on how to make the time period be between say, 10pm and 8am? I can't figure out how to use a time period that spans midnight.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.