switched modules from subprocess to applescript