App.focus on OS X only lets app jump once in dock

Asked by Jan W.

Hi, using SikuliX 1.1 here:

if i try to open terminal.app or another app with e.g:
terminalapp = App.focus ("/Applications/Utilities/Terminal.app")

the terminal icon only jumps once in the dock and then nothing happens. is this a permission thing or am i doing something wrong?

Regards
Jan

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Cisum4
Solved:
Last query:
Last reply:
Revision history for this message
Cisum4 (deshpande-sa) said :
#1

I had the same issue - the workaround i used was
doubleClick(TerminalIcon)
then it opened.

Revision history for this message
Best Cisum4 (deshpande-sa) said :
#2

I downloaded the latest build:
http://nightly.sikuli.de/

installed on MAC Yosemite

Now, i no longer have the same problem,
App.open('Terminal')
App.open('Safari')
App.focus("Terminal')
App.close("Safari")
Are all working as expected

Revision history for this message
RaiMan (raimund-hocke) said :
#3

The reason why this works now with late nightly of 1.1.0: bug 1445667

Revision history for this message
Jan W. (3-me-q) said :
#4

Oh ok, thanks.
That sounds great. will update asap.

Revision history for this message
Jan W. (3-me-q) said :
#5

Thanks Cisum4, that solved my question.