• 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
Re: NSApplicationName not always the same name the rest of the system recognizes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApplicationName not always the same name the rest of the system recognizes?


  • Subject: Re: NSApplicationName not always the same name the rest of the system recognizes?
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 27 Aug 2003 13:16:14 -0500

Try the last path component returned to the NSApplicationPath key.

-- F


On Saturday, 23 August 2003, at 4:30 PM, Bryan Lund wrote:

I have noticed that the NSApplicationName key of the dictionary returned by activeApplication of NSWorkspace is not always the same name that is recognized by the rest of the system (including Applescripts).

A good example is almost all the Microsoft and Adobe applications. "Microsoft Word" for example returns "Word" as it's NSApplicationName but will only respond to "Microsoft Word" from an AppleScript (and is listed as such in the dock).

So my question is this: How can I get the name of an application reliably and expect it to be the same name that the rest of the system uses?

--
Fritz Anderson email@hidden
Mac Programmer
University of Chicago
Networking Services and Information Technologies
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSApplicationName not always the same name the rest of the system recognizes? (From: Bryan Lund <email@hidden>)

  • Prev by Date: Notification of Front Process Changed ?
  • Next by Date: Re: Odd QuickTime Problem
  • Previous by thread: NSApplicationName not always the same name the rest of the system recognizes?
  • Next by thread: Printing question (Problem!)
  • Index(es):
    • Date
    • Thread