• 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: 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

  • Follow-Ups:
    • Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
      • From: Scott Ribe <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>)
 >Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: button states usually always disabled
  • Next by Date: NSFileWrapper serializedRepresentation bloat?
  • 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