Question #272494 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/272494

RaiMan proposed the following answer:
ok, this is a workaround (tested with OS X 10.11):

# a function that runs an applescript, that brings SikuliX to front
def sikulixToFront():
    cmd = '''
    applescript
    tell application "System Events"
        set xapp to first item of (processes whose displayed name is "SikuliX")
    end tell
    set frontmost of xapp to true
    '''
    runScript(cmd)

# test: Safari to front
switchApp("Safari")
wait(2)

#instead of App.focus("SikuliX")
sikulixToFront()
popup("continue?")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to