Fucked these up, changed to work with osascript