from app.util.shell_execute import execute class AppleScript: @staticmethod def exec(code: str, timeout=None): stat, out, err = execute('/usr/bin/osascript', code, timeout) return stat, out, err