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