If you’ve ever wanted to analyze your own health data, here’s how.
- Open the Health app.
- Tap on your profile in the top right.
- Tap Export All Health Data.
- Share the archive with yourself (e.g. via AirDrop, Files, Mail, etc.).
If you’ve ever wanted to analyze your own health data, here’s how.
| #!/bin/bash | |
| ################################## | |
| # | |
| # THE ARCHIVE TRACKER | |
| # | |
| # REF: https://gist.github.com/markwk/c85a8a72bc8c03d0f510262bb5219a34/ | |
| # | |
| # INTRODUCTION: | |
| # Daily script to navigate to a directory of plain text files, | |
| # add files to git repo, calculate key stats, store stats to csv |
| set dFolder to "~/Desktop/screencapture/" | |
| do shell script ("mkdir -p " & dFolder) | |
| set i to 0 | |
| repeat 960 times | |
| do shell script ("screencapture " & dFolder & "frame-" & i & ".png") | |
| delay 30 -- Wait for 30 seconds. | |
| set i to i + 1 | |
| end repeat |
| # taken from user Albert's answer on StackOverflow | |
| # http://stackoverflow.com/questions/5292204/macosx-get-foremost-window-title | |
| # tested on Mac OS X 10.7.5 | |
| global frontApp, frontAppName, windowTitle | |
| set windowTitle to "" | |
| tell application "System Events" | |
| set frontApp to first application process whose frontmost is true | |
| set frontAppName to name of frontApp |