On Aug 9, 2008, at 7:12 PM, Uli Kusterer wrote:

On 10.08.2008, at 01:50, Jacob Bandes-Storch wrote:
It doesn't seem to make sense to use the script suite stuff to receive the URL event.. shouldn't it be used for scripting only? Or am I mistaken?


Apple Events are simply a means for applications to communicate. Just like you can use AppleScript to tell an application to open a file (which sends an 'aevt'/'open' Apple Event), you can tell it to open a URL. So, using the scripting stuff not only implements the handler in a nice, object-oriented way, it also allows users to use scripting languages to achieve the same.

If you're not going to go to the trouble of making your application properly scriptable, which is a non-trivial task, I'd recommend that you just register a handler for the Apple Event. It's quite straightforward.

Cheers,
Ken
_______________________________________________

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]

Reply via email to