On 17 Mar '08, at 12:00 PM, Ryan Chapman wrote:
Is there any way to get this information from within a command-line utility? In my case, I have a command-line utility wrapped up in an application bundle, so I really don't need any GUI stuff, but I thought I could use the Cocoa classesto get the filename sent without launching a GUI.
You need to register AppleEvent handlers to get the open-document event when your process is launched. If you don't have NSApplication doing it for you, then you need to use NSAppleEventManager (which is in Foundation) to set up handlers and process the event.
—Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]