How to activate Mac OS X application with a given process ID?
Posted
by Olivier
on Stack Overflow
See other posts from Stack Overflow
or by Olivier
Published on 2010-02-19T14:04:42Z
Indexed on
2010/03/08
14:06 UTC
Read the original article
Hit count: 234
macosx
|applescript
I know the process id of an application in Mac OS X. How can I switch to it (using applescript, or python, or whatever)?
By "switch", I mean, put in focus.
The usual solution is to use the applescript code tell application "Foo" activate
, but here the name is not useful because I have many instances of the same application running. I am however able to get the process id of the application.
How can I switch to this application programmatically?
© Stack Overflow or respective owner