created separate extractTimelapseSessions script for use on macs.  This one is far less efficient