How do I bring another app’s window to front on Mac in C/C++?
I have the app’s pid.
I found solutions for AppleScript, but I’m not familiar with AppleScript. (and also not with Objective C)
Thanks!
edit: I cannot use Carbon in this program, because it must be a 64 bit binary.
edit2: I’m also interested in Carbon and Cocoa solutions. I could put this into an exernal 32 bit app to use Carbon.
You can do it like this:
This will also launch the app (Address Book in this example) if it’s not already running.