iOS Script for Logging Mindfulness


Since installing iOS 14 I’ve been playing with Shortcuts on my iPhone quite a bit. I’ve been fiddling around with creating a shortcut to log my mindfulness minutes (ie, meditation!). This data goes into my Apple Health data records. I finally got a script working. The trick was to figure out how to play with the dates. Anyway, in case you’re interested, here’s the script. Note that on the “Show More” for the first step (Ask for Number) you can put in a default value, like ’15’ if you usually meditate for 15 minutes.