Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Run multiple Expanders to multi-task archive expansion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Run multiple Expanders to multi-task archive expansion
Authored by: elmimmo on Apr 28, '03 02:45:05PM

As pointed out in this thread at macosxhints.com's forums it is not necessary to have multiple copies of an application to open multiple instances.

To launch as many instances as desired of a cocoa application, for example TextEdit, type in the terminal, as many times as needed: /Applications/TextEdit.app/Contents/MacOS/TextEdit &

To launch an application that does not have such a file, i.e. certain carbon apps, type in the terminal: /System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp '/path/to/some/application'

I guess it wouldn't take much of a trouble for anyone experienced with AppleScript to create a droplet that would launch a new instance of whatever application using that info.



[ Reply to This | # ]
Run multiple Expanders to multi-task archive expansion
Authored by: elmimmo on Apr 28, '03 02:48:23PM
Uh... now that I think of it you might need to prepend sudo -u yourusernamehere in both cases for the hint to take effect. I am using my Windows PC right now so I cannot check it :-p

[ Reply to This | # ]
Run multiple Expanders to multi-task archive expansion
Authored by: elmimmo on Apr 28, '03 02:54:57PM

Ouch, and I forgot to add the & at the end of the command for carbon apps. Leaving that out makes that Terminal window unusable until you exit the launched instance. Just look at how it is written in the hint for cocoa apps and do the same.

Ok... just like this (without linebreaks) :
sudo -u yourusernamehere /System/Library/Frameworks/Carbon.framework/Versions/Current/Support/LaunchCFMApp '/Applications/Nameofyourapplication' &



[ Reply to This | # ]