感谢您抽时间阅读。我在 Mac OS X 10.7 上的 python 脚本中调用了一个 osascript。
osascript -e 'tell application "Microsoft PowerPoint" to activate' -e 'tell application "System Events" to key code 124'
以下是出错的脚本片段:
import os
cmd = """osascript -e 'tell application "Microsoft PowerPoint" to activate' -e 'tell application "System Events" to key code 124'
os.system(cmd)
这是错误日志:
[error] [client 192.168.10.65] 92:96:
[error] [client 192.168.10.65] syntax error: Expected end of line, etc. but found identifier. (-2741)
几个小时一直在敲我的头,请帮助或指示非常感谢!=)