Is it possible to use Python in the way that开发者_运维知识库 AppleScript is used to automate/customize the Mac OS?
http://appscript.sourceforge.net/
Since appscript is deprecated and no longer maintained, you might want to look at simply executing AppleScript directly from your python script with a popen() to /usr/bin/osascript.
精彩评论