Getting the front process path
Getting the front process path
- Subject: Getting the front process path
- From: Chris Idou <email@hidden>
- Date: Thu, 12 Mar 2009 20:41:45 -0700 (PDT)
I thought I'd figured out how to get the path of the currently running process:
GetFrontProcess, then CopyProcessName, and then
[[NSWorkspacesharedWorkspace] fullPathForApplication:app]
This works most of the time, but some programs, for example Aquamacs Emacs, has just "Aquamacs" in the titlebar, and this
gets returned by CopyProcessName. But fullPathForApplication can't find it unless you pass in the full "Aquamacs Emacs".
How do I fix this problem?
Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden