Captures the OSX program running in the foreground and saves it to an iCal-location.