Any ideas?
-- James L. Ryan -- TaliesinSoft
> Occasionally I will end up with multiple instances of Safari concurrently
> running
....
> I have also done a finder search on my hard drive and there is only a single
> instance of the Safari application.
To my knowledge, it is impossible to have multiple instances of a single
application running on Mac OS (X or 9). The only way I have ever had
this happen (intentionally or not) was when there were multiple copies
of an application.
My guess is that there is a second copy of Safari (perhaps an older
version?) hiding somewhere.
To determine this, control click on the icon in the dock and select "
Show in Finder" for each instance and try to track down where each of
them "lives."
Good luck,
Fletcher
Of course it's possible. Try executing the binary in MacOS/ in the app
bundle several times.
> Of course it's possible. Try executing the binary in MacOS/ in the app
> bundle several times.
Just did. No luck - in fact, it wouldn't launch at all. It asked for
me to select an application to open the file with.
I stand by my assertion that "true mac" apps (ie, OS 9 and previous, and
.app style apps now) can only be running once per copy.
I would love to find an example to the contrary out of curiousity and
continue to welcome one.
Fletcher
I don't know how your experiment went wrong, but try this:
cd /Applications/Safari.app/Contents/MacOS
./Safari &
./Safari &
See the multiple Safari icons in the Dock? After executing the above
sequence, I have three occurrences: The normal one,which is a permanent
resident in the Dock and one for each of the "hand launched" instances
above. All three are happily displaying
--
Tom Stiller
PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
> I don't know how your experiment went wrong, but try this:
>
> cd /Applications/Safari.app/Contents/MacOS
> ./Safari &
> ./Safari &
>
VERY INTERESTING! I had tried opening it in the Finder with no luck,
but you're absolutely right. It launched multiple instances from the
terminal no problem. And just to try it out, I did it with and without
the &. Do it without, and as soon as you close the Terminal, Safari
quits. Do it with, and you can kill the Terminal window without closing
Safari (just like other *.nix cases).
So I guess Apple was able to make the finder continue to limit each app
to one instance, but had to allow the terminal version to run in
multiple instances to be compatible with other *nix traditions...
Now to figure out how to do something cool with this.
Fletcher
>> Of course it's possible. Try executing the binary in MacOS/ in the app
>> bundle several times.
> I stand by my assertion that "true mac" apps (ie, OS 9 and previous, and
> .app style apps now) can only be running once per copy.
Ah, so this is a "classic vs. OSX" distinction you're making then?
I dunno about "cool" but as an example, I sometimes am doing things in
Terminal and even in Safari that are stressful to the poor app. As
crashing one terminal window brings 'em all down, with unhappy
consequences for the other shells I have open, I keep the "normal"
stuff in its own instance of Terminal.
And as Safari is still pretty easy to crash, I sometimes keep an extra
instance of that open too (although more often I just have both
Safari and Explorer open).
--
to...@aplawrence.com Unix/Linux resources: http://aplawrence.com
Inexpensive phone/email support
Download Free Linux Skills Test: http://pcunix.com/skilltests.html
window
> > I stand by my assertion that "true mac" apps (ie, OS 9 and previous, and
> > .app style apps now) can only be running once per copy.
>
> Ah, so this is a "classic vs. OSX" distinction you're making then?
No, I was including OS X and Classic together because I was unable to
launch multiple instances of Safari from the Finder.
But after following the other poster's instructions, I was able to
launch multiple instances from the Terminal. As I don't really use any
classic apps, I have not tried using the terminal to launch multiple
instances of classic apps.
I was originally trying to differentiate between "Mac apps" and "Unix
commands" (ie ls, pine, grep, etc.)
Turns out that at least with Mac OS X, the apps have a "Unix command"
buried inside that can be run multiple times at once....
I learn something new every day!
Fletcher
> I was originally trying to differentiate between "Mac apps" and "Unix
> commands" (ie ls, pine, grep, etc.)
In OSX, everything is a "unix command". There should be a command that
the icon calls when you click it - I haven't found how to find that
yet, but I've never found a Unix yet where that wasn't true.
> Turns out that at least with Mac OS X, the apps have a "Unix command"
> buried inside that can be run multiple times at once....
Yup.
> I learn something new every day!
There's some cool stuff going on behind the scenes. I'm new to Mac,
but have been doing Unix since 1990, so I'm seeing the behind-the-scenes
stuff first, and seeing how Apple worked the GUI into them. It's pretty
elegant.
Dave