|#device=$(ls ~/Library/Application\ Support/Garmin/Devices/)|
|for device in $(ls ~/Library/Application\ Support/Garmin/Devices/)|
|echo "Copy history files for Device $device"|
|cp ~/Library/Application\ Support/Garmin/Devices/$device/History/*.TCX $destination_dir|
This script is for MAC OSX
Garmin ANT Agent is hiding the training data that it downloads from your Garmin device in a folder you can't easily get to with Finder. And then it uploads them to Garmin Connect.
If you want to have a backup of your files that you can see or if you want to upload them to Strava you need to go to Garmin connect and export every individual TCX file and it is a real pain. This got me really annoyed
This little script copies your TCX files from their hiding place and puts them in a directory/folder of your liking. You need to use the terminal to do this but ill try to make the instructions so that anyone that does know how handle files in Finder open an editor and to start The terminal and type simple commands should be able to do it