-
2 votesanswersviews
Applescript:Safari无法保存网页(AppleEvent处理程序失败错误)
我希望safari能够使用apple automator下载并保存网页 . 打开Safari窗口后,我在AppleScript编辑器中运行以下脚本: tell application "Safari" set URL of document 1 to "http://www.python.org" delay 6 get docume... -
1 votesanswersviews
当应用程序运行时,如何在基于py2app的Python应用程序中接受“打开文档”事件?
我一直在OS X 10.10上构建一个64位Python 3.4.2应用程序,我使用py2app 0.9捆绑为Mac应用程序 . 我已经调整了应用程序的Info.plist文件,因此OS X知道我的应用程序可以打开具有特定文件名后缀的文件 . 当用户在Finder中双击具有特定文件名后缀的文件时,将打开该应用程序并将双击文件的名称作为参数发送给应用程序 . 但是,如果应用程序已在运行,并且我双击具...