Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a trick in which to open the same app twice. Let me explain.

For example, I have an app called SQLite Database Browser but it can only handle one SQL DB at a time. I would like to start another SQLite DB Browser so I can open another SQL DB file. How do I do that?

share|improve this question
    
I do this with Firefox occasionally by creating multiple browser profiles. OS X then sees each instance of Firefox with a unique profile as a separate application. – Somantra Jul 19 '11 at 18:16
up vote 20 down vote accepted

If you use open from the command line you can pass a parameter to start a new instance:

open -n /Applications/TextEdit.app

Another way is to find the Unix executable in the app bundle and run it:

/Applications/TextEdit.app/Contents/MacOS/TextEdit &
share|improve this answer
2  
One could use Automator.app to create a small application that uses this command line to launch a second instance. That would eliminate the need to always type that into a Terminal. – slhck Jul 19 '11 at 20:35
    
@Mark. Excellent. The open -n works great. I haven't tried the Unix executable but I'll keep that in mind. @ slhck. scripting will do the trick. If I need to use the command over and over again, I'll definitely make one. Thanks everybody!!! – okysabeni Jul 20 '11 at 14:46
    
@slhck When using Automator, select "Services" and "Shell Script". Use clover-S to save, and go to keyboard shortcuts, "Services" to find this script and assign it to a shortcut. apple.stackexchange.com/questions/24063/… – Droogans Oct 28 '13 at 15:58
2  
just alias it, eg. alias textedit='open -n /Applications/TextEdit.app' – okiharaherbst Jun 3 '15 at 7:17

I know with CarbonCopyCloner I can make another copy of the application itself and I can open two instances of CCC at the same time. Have you tried something like that?

share|improve this answer
    
So, use CCC to create another copy of the SQLite application? – okysabeni Jul 19 '11 at 19:04
1  
No @mdgarci was just giving CCC as an example - just copy your app with finder -- but for better way see my answer – Mark Jul 19 '11 at 19:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .