• 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: How does 'Finder' open an application and bring the window to the front?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does 'Finder' open an application and bring the window to the front?


  • Subject: Re: How does 'Finder' open an application and bring the window to the front?
  • From: Andre-John Mas <email@hidden>
  • Date: Thu, 20 Dec 2007 09:19:48 -0500


On 20-Dec-07, at 03:03 , Calvin Liu wrote:

Hi, Terry,

Thanks for the feedback.

Actually I'm working on a Firefox addon which provide user the feature to switch among existing profiles. So I can use a Firefox method to start another independent Firefox process. But the new Firefox is always behind the previous one. I got the idea to use "open" from mozilla community, so I did some trick like this:

1. write a shell script to start Firefox in a new process
2. create a fake.app folder which contains necessary folder structure/files to make it looks like an application to "open"
3. write another shell script to "open" this fake.app
4. call the 2nd script from my addon.


It works but seems not to be a "beautiful" solution. So I'm wondering if there's any other way to solve it. If you have any idea about that, could you please let me know? Thanks a lot!

Firefox already had the ability to switch between profiles, though on the Mac you will
have to go through the command line:


  /Applications/Firefox.app/Contents/MacOS/firefox -ProfileManager

There may be a way of using Applescript.

Andre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How does 'Finder' open an application and bring the window to the front?
      • From: Andre-John Mas <email@hidden>
References: 
 >How does 'Finder' open an application and bring the window to the front? (From: Calvin Liu <email@hidden>)
 >Re: How does 'Finder' open an application and bring the window to the front? (From: Terry Lambert <email@hidden>)
 >Re: How does 'Finder' open an application and bring the window to the front? (From: Calvin Liu <email@hidden>)

  • Prev by Date: Re: How does 'Finder' open an application and bring the window to the front?
  • Next by Date: Re: How does 'Finder' open an application and bring the window to the front?
  • Previous by thread: Re: How does 'Finder' open an application and bring the window to the front?
  • Next by thread: Re: How does 'Finder' open an application and bring the window to the front?
  • Index(es):
    • Date
    • Thread