willsonlincake 发表于 2022-4-15 02:22:47

Python运行AppleScript

>>> import applescript
>>> r = applescript.run('return 1')
>>> r = applescript.run('path/to/file.applescript')

>>> r.code
0
>>> r.out
'hello world'
>>> r.err
''
页: [1]
查看完整版本: Python运行AppleScript