use applescript to force slash screen on to, thanks Marc

This commit is contained in:
Massimo DiPierro
2012-05-19 10:09:38 -05:00
parent 1f265ee370
commit 667396904c
2 changed files with 12 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-05-19 10:07:52) dev
Version 2.00.0 (2012-05-19 10:09:36) dev
+11
View File
@@ -983,6 +983,17 @@ def start(cron=True):
if root:
root.focus_force()
# Mac OS X - make the GUI window rise to the top
if os.path.exists("/usr/bin/osascript"):
applescript = """
tell application "System Events"
set proc to first process whose unix id is %d
set frontmost of proc to true
end tell
""" % (os.getpid())
os.system("/usr/bin/osascript -e '%s'" % applescript)
if not options.quiet:
presentation(root)
master = web2pyDialog(root, options)