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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]