• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting the front process path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Getting the front process path
      • From: Dave Keck <email@hidden>
    • Re: Getting the front process path
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Poof! Recently-saved Core Data document suddenly gets dirty
  • Next by Date: Handling errors in -initWithCoder:
  • Previous by thread: Re: TXT Records with NSImages
  • Next by thread: Re: Getting the front process path
  • Index(es):
    • Date
    • Thread