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

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


  • Subject: NSApplicationName not always the same name the rest of the system recognizes?
  • From: Bryan Lund <email@hidden>
  • Date: Sat, 23 Aug 2003 14:30:11 -0700

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?

Thanks,
-Bryan
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSApplicationName not always the same name the rest of the system recognizes?
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: addTrackingRect and setAutoresizingMask
  • Next by Date: Printing question (Problem!)
  • Previous by thread: addTrackingRect and setAutoresizingMask
  • Next by thread: Re: NSApplicationName not always the same name the rest of the system recognizes?
  • Index(es):
    • Date
    • Thread