[1.1.0] Mac: not possible to get SikuliX to front with App.focus("SikuliX") --- workaround

Bug #1530436 reported by RaiMan on 2016-01-01
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
High
RaiMan

Bug Description

********* workaround (1.1.0 final +)

# 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?")

------------------------------------------

1.1.0(2015-08-20_01:00nightly)/Mac10.10.5/Java8(64)1.8.0_25-b17

When Script Runs Popup or Input is hidden behind the main screen
Is there anyway to Force it to appear ontop

my workaround is to make the text so long that some of it appears on the right hand side and I can click on it to bring it to the front
(Running from command line)

RaiMan (raimund-hocke) on 2016-01-01
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
RaiMan (raimund-hocke) on 2016-01-01
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions