I am developing osX app, I need to open another App from MyApp
func openAnotherProcess(command:[String])
{
let task = Process()
task.launchPath = /PATH FOR WHICH WANT TO OPEN/
task.arguments = command
let pipe = Pipe()
task.standardOutput = pipe
task.standardError = pipe
task.launch()
}
The above line successful open Application and window. this application has many window. But I want windowId of that window which has been open from MyApp.
I am able to get all running window but not able to distinguish the pericular WindowId