Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

AppleScripts to monitor and improve fitness Apps
Remember those 'bleep tapes' that they used to make you run against once a year in school to monitor fitness levels? Well, I set about making my own to listen to on my iPod. This script replicates the 'bleep tape,' enabling you to do shuttle runs at ever increasing speeds until you collapse on the floor and try not to vomit.

I then took it a stage further and developed this script, which is designed to improve your times over a circuit, preferably a circuit with a number of landmarks on it.

You'll end up with lots and lots of AIFF sound files, which you will need to import into iTunes. Beware that (particularly for the second script) you may well end up with a few hundred megabytes of sound files. It's probably a good idea to crunch these down in iTunes to MP3 or AAC before loading them onto your iPod. As suggested in the second script, you may also want to give each level an album name to make them easier to select, or use separate playlists.

Don't forget to turn off shuffle mode!

[robg adds: I haven't tested these...]
    •    
  • Currently 1.83 / 5
  You rated: 1 / 5 (6 votes cast)
 
[3,376 views]  

AppleScripts to monitor and improve fitness | 9 comments | Create New Account
Click here to return to the 'AppleScripts to monitor and improve fitness' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
AppleScripts to monitor and improve fitness
Authored by: stealthgeek on May 20, '05 08:57:41PM

Cool! I've wanted to do that for a while, thank you!

Lonk to Script number 1 isn't working...

---
Stealthgeek



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: dean6101555 on May 20, '05 09:01:34PM

I hate to show my exercise ignorance but how far are you supposed to run in between beeps? (Also i could not get through to script 1).



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: pete on May 23, '05 09:52:35AM

If this is like the fitness test in the Canadian Military, the distance between beeps is 20 metres.



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: sjmills on May 21, '05 08:58:41PM
What sorta high class school did you go to that had tapes?! Our PE coach just blew a whistle. Thanks for the memories of watching the other kids puke on the gym floor.

[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: PeteVerdon on May 22, '05 09:45:37AM

We had tapes. I remember that there was a special calibration procedure they had to do at the start of the tape (with the monotonous voice reading out instructions for how to do it) to make sure it hadn't stretched.

Pete



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: leenoble_uk on May 22, '05 11:55:50AM

Original author.
Link to first broken file:
http://idisk.mac.com/leenoble/Public/shuttleRun.txt

On the subject of how far. You should find what you think is a suitable distance and time yourself walking it and insert this into the script. Alternatively, mark a starting point and walk slowly for 10 seconds and mark that point and just use the script as is.

I found the distance from the goal line to the edge of the penalty box on a football (the proper football) pitch to be ideal and this was where the 10 seconds came from originally.

---
So, I said ... well, I can't actually remember exactly what I said. But it was one of the most enormously cruel and frighteningly witty put downs ever.



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: leenoble_uk on Jan 28, '09 01:25:49PM

Original author here again.

Having finally stuck to a running program for 3 months I thought I'd dig out my old iPod scripts and use the circuit run one. However I discovered an annoying limitation of AppleScript.

If you have a gap between waypoints of > 32 seconds then the silence command fails. It actually fails at 32767 (the values are multiplied by 1000 for each second of silence. The script still runs with no errors though, however the period of silence is non-existent.

The fix is to add this code:

			repeat while timeToNextWayPoint > 32
				say "[[slnc 32000]]" using theVoice saving to (newSaveLocation & circuitName & trackNo & ".aif")
				set timeToNextWayPoint to (timeToNextWayPoint - 32)
				set trackNo to trackNo + 1
			end repeat

after the line

if timeToNextWayPoint > 7 then

---
Brought to you by S C Johnson, a family multinational conglomerate.

[ Reply to This | # ]

AppleScripts to monitor and improve fitness
Authored by: palahala on Jan 28, '09 01:54:04PM

Wow, lifetime support! :-)



[ Reply to This | # ]
AppleScripts to monitor and improve fitness
Authored by: leenoble_uk on Jan 29, '09 04:39:39AM

I've actually left a variable in there which isn't defined i the original script. Chop out the circuitName concatenation.

I've modified my script to include the waypoint names and circuit identifiers for ease of identification. Those mods are left as an exercise for the reader.

---
Brought to you by S C Johnson, a family multinational conglomerate.



[ Reply to This | # ]