fix applescript automating