Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
- Subject: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
- From: eveningnick eveningnick <email@hidden>
- Date: Sun, 9 Jan 2011 01:46:40 +0200
> The one that comes to my mind immediately, is that if the user is double-clicking a document in the Finder to open it, or trying to print from the Finder, then the event for that goes to your script, not the real application. So the script would need to pass that on.
>
> Assuming your app even deals with documents, which based on some of your prior posts re pref panes, seems like it may not.
Thanks Scott for the answer
My Main Application DOES deal with documents and even URLs, so i guess
i will have to pass on requests which need to be processed according
to CFBundleDocumentTypes and CFBundleURLTypes.
I guess i could implement in a script (or, rather, a "thin"
application) interceptor of odoc, pdoc and GURL apple events. and
execute Launch Services functions on the final bundle of Main
Application (which has a role of a helper tool), but are these all the
caveats i need to follow?
As far as i understand, this "drag to dock" issue is basically sending
"odoc" apple event as well?
Are there any possible pitfalls?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden