我想将一个窗口(例如QuickTime)放在最前面,而不将其聚焦。我可以使用Applescript中的以下代码在OS X 10.7中进行操作。 tell application "System Events" set visible of process "QuickTime Player" to true end tell 这是等效的Python。 from ScriptingBridge import * process = SBApplication.applicationWithBundleIdentifier_('com.apple.systemevents').processes().objectWithName_('QuickTime Player') process.setVisible_(True) 但是在我升级到OS X 10.8后,它不起作用。有什么办法可以使其工作?