Login About Gallery
Sleep shortcut - Working Template
COMMENT
Created by @jacksondame This base template provides the building blocks for exporting a single health category out of Apple Health and into a CSV format
TEXT
Sleep Start, Sleep End
VARIABLES
Set variable
health data
to
Text
HEALTH
Find
All Health Samples
where
All the following are true
Type
is
Sleep
Start Date
is in the last
3
days
Value
is
Asleep
Source
is not
Value
Sort by
Start Date
Order
Oldest First
Limit
SCRIPTING
Repeat with each item in
Health Samples
HEALTH
Get
Source
from
Repeat Item
DOCUMENTS
Get text from
Source
HEALTH
Get
Value
from
Repeat Item
HEALTH
Get
Start Date
from
Repeat Item
CALENDAR
Options Under Construction
HEALTH
Get
End Date
from
Repeat Item
CALENDAR
Format
End Date
Options Under Construction
End Repeat
TEXT
Combine
Repeat Results
with
New Lines
TEXT
Combined Text
health data
DOCUMENTS
Show
Text
in Quick Look

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 14 days ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0