• 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: Monitoring the launched Browser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitoring the launched Browser


  • Subject: Re: Monitoring the launched Browser
  • From: Quinn <email@hidden>
  • Date: Fri, 6 Dec 2002 12:48:42 +0000

At 14:57 +0000 5/12/02, email@hidden wrote:
So I wondering (Maybe Quinn, as a original developer of this API :-) )
could answer on exactly how ICLaunchURL is working, as I need to get to a
FSSpec or a PSN to find the actual browser which was requested to launch.

ICLaunchURL runs two separate code paths, depending on whether the application is running or not. It uses just the creator code from the ICAppSpec to find the running application (the name in the ICAppSpec is just a comment so that UI can display a name even if the app is missing from the system). If the app is running, it just sends it a 'GURL' AE. Otherwise, it looks up the app in the DTDB and launches it, including the 'GURL' AE as the launch app params.

You should be able to monitor the browser by getting the creator, calling ICLaunchURL, and then just looking for a running app with that creator. After the call to ICLaunchURL, that app is guaranteed to be running.

The above is accurate for 9. For X things are quite different (LS gets involved), although the same basic advice should apply.

Of course, this messes up if the user has 2 different versions of the app running simultaneously, but IC doesn't handle that case anyway (the 'GURL' event gets sent to the first one in the process list).

Also, once the app is running, you can get its FSSpec using Process Manager.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Monitoring the launched Browser (From: <email@hidden>)

  • Prev by Date: NetworkSetupLibrary
  • Next by Date: Re: socket debug
  • Previous by thread: Re: Monitoring the launched Browser
  • Next by thread: socket debug
  • Index(es):
    • Date
    • Thread