Installation $ [sudo] pip install osascript Examples >>> import osascript >>> code,out,err = osascript.run('display dialog "42"') Links osascript(1) Man Page readme42.com