0

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

Komal Kamble
  • 424
  • 1
  • 8
  • 25
  • 2
    The *title* of your question isn't the same as the question you go on to ask: the title refers to process IDs, but the question is ultimately about getting the window ID of a specific window from another app. Can you clarify? Also, is there a reason you aren't using `NSWorkspace` to launch the process? – Paul Patterson Jun 30 '17 at 10:25
  • true @PaulPatterson – Vikram Sinha Nov 17 '17 at 11:13

0 Answers0