Initial import of iTermRestore applescript