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

Bug #1530436 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
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)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
RaiMan (raimund-hocke)
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.1 → 2.0.5
summary: - [1.1.0] Mac: not possible to get SikuliX to front with
- App.focus("SikuliX") --- workaround
+ [2.0.4] Mac: not possible to get SikuliX to front with
+ App.focus("SikuliX") --- workaround???
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → In Progress
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Low
importance: Low → Wishlist
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
summary: [2.0.4] Mac: not possible to get SikuliX to front with
- App.focus("SikuliX") --- workaround???
+ App.focus("SikuliX") --- workaround --- fixed 2.0.6
Changed in sikuli:
importance: Wishlist → Critical
milestone: 2.0.5 → 2.0.6
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.