Copy this shell script into Text Editor:
#!/bin/bashecho $(date) $(defaults read com.andrewjfreyer.AirportLocation CurrentLocation) >> LocationLog.txt
Save it as "LogLocations.sh"
Then, add a Shell Script to a Snapshot.
sh /Path/to/LogLocations.sh
Then you will have your locations logged, with a timestamp!
Awesome! Thanks!
ReplyDeleteCurious...
ReplyDeleteCould this script be adjusted to save a log file to a Dropbox folder and therefore give you an indication of where your computer was if ever it got stolen? (Assuming the thief opens the computer to use it rather than completely wiping the drive clean first).
Sure!
ReplyDeleteJust change the ">> LocationLog.txt" part of the shell script to:
"/Path/To/Dropbox/LocationLog.txt"
make sure to enclose it in quotes!
Also, in 0.5083 (mid-May probably) I'm adding a location log iCal calendar. It'll show you where you've been and for how long!
ReplyDeleteAwesome! Thanks for the quick response.
ReplyDelete