first commit

This commit is contained in:
编码猿
2024-09-27 01:20:28 +08:00
commit ddc91bf4e2
137 changed files with 4017 additions and 0 deletions

7
app/util/apple_script.py Executable file
View File

@@ -0,0 +1,7 @@
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