NSApplicationName not always the same name the rest of the system recognizes?
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.