• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
      • From: eveningnick eveningnick <email@hidden>
References: 
 >Execute a pre-starting script first, when the App bundle is launched, then the main executable (From: eveningnick eveningnick <email@hidden>)
 >Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable (From: Kyle Sluder <email@hidden>)
 >Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable (From: eveningnick eveningnick <email@hidden>)

  • Prev by Date: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Next by Date: [UIWeVview] goBack:/goForward: (correction)
  • Previous by thread: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Next by thread: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Index(es):
    • Date
    • Thread