What means "App.open: not found in taskList after 0 secs"

Asked by Alexandr on 2018-12-13

Try to start app

x = App("/Applications/Calculator.app")
x.open()
App starts, but in message area appears error:

[error] App.open: not found in taskList after 0 secs (/Applications/Calculator.app)

On Windows the same

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2018-12-14
Last reply:
2018-12-14
RaiMan (raimund-hocke) said : #1

Thanks for the pointer.

Has to be revised. I will tell you here, when the fix is ready.

RaiMan (raimund-hocke) said : #2

Mac: should be fixed now.

--- On Windows the same
pleas give me the example, that does not work

Alexandr (shamrayonok) said : #3

---pleas give me the example, that does not work

for example:

x = App("C:\Program Files\Sublime Text 3\sublime_text.exe")
x.open()

Alexandr (shamrayonok) said : #4

The same script execute in sikuli 1.1.1 without error message

RaiMan (raimund-hocke) said : #5

at comment #4:
the internal implementation of class App is completely revised in 1.1.4 and might still have problems

at comment #3:
x = App("C:\Program Files\Sublime Text 3\sublime_text.exe")

must either be:
x = App(r"C:\Program Files\Sublime Text 3\sublime_text.exe")

or
x = App("C:\\Program Files\\Sublime Text 3\\sublime_text.exe")

please read the docs about the app class - should help to get on the road.

RaiMan (raimund-hocke) said : #6

... and please download the latest build and test on Mac

Alexandr (shamrayonok) said : #7

   ### ... and please download the latest build and test on Mac

Thanks, in Mac issue fixed

WIN
I read docs about the app class and tried:
x = App(r"C:\Program Files\Sublime Text 3\sublime_text.exe")
and
x = App("C:\\Program Files\\Sublime Text 3\\sublime_text.exe")

Not helped..(

Alexandr (shamrayonok) said : #8

Maybe it related with name of app(description) and name of exe file?

For example this works without error:

x = App("C:\Program Files (x86)\AIMP\AIMP.exe")
x.open()
wait(5)
x.close()

AIMP.exe == AIMP(app name)

In example with Sublime:

sublime_text.exe != Sublime Text(app name)

RaiMan (raimund-hocke) said : #9

again thanks for you tests and details.

I will check and fix asap.

Can you help with this problem?

Provide an answer of your own, or ask Alexandr for more information if necessary.

To post a message you must log in.