← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #210056]: Is it possible to focus 1 of 2 instances of the same process in OSX?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
On Mac App.focus() finally uses the native method
sharedWorkspace.launchApplication(appName), which either opens the app
as frontmost or brings it to front, if already open.

appName either is a fully specified absolute path to the .app bundle or
the string specified in the app's info.plist as CFBundleName.

as long as more than 1 instance of the same app is running, Sikuli's
feature currently has no chance, to access a specific one of these
instances (it seems, it gets the one, that was started first).

You might try, to duplicate the emulator app with another name and
change the CFBundleName in its info.plist accordingly.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.