7 lines
219 B
Python
Executable File
7 lines
219 B
Python
Executable File
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 |