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: Scott Ribe <email@hidden>
- Date: Thu, 6 Jan 2011 10:48:55 -0700
On Jan 6, 2011, at 10:27 AM, eveningnick eveningnick wrote:
> i know It looks like a dirty hack, but is it possible to do this way,
> without modifying the main application (except simple renaming of its
> binary)? What pitfalls could i run into, doing that?
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.
--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice
_______________________________________________
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