Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Launching Carbon from CLI

Launching Carbon from CLI
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Feb 12, 2002, 03:24 PM
 
Hello,

I thought that I had seen this issue raised here before but I guess not. Does anyone know how to launch a Carbon application form the command line without resorting to the "open" command?

Thanks,
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
qyn
Dedicated MacNNer
Join Date: Dec 2000
Location: sj ca
Status: Offline
Reply With Quote
Feb 12, 2002, 07:22 PM
 
LaunchCFMApp
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status: Offline
Reply With Quote
Feb 12, 2002, 07:59 PM
 
well ... if your Carbon app is a CFM app, you can use LaunchCFMApp.

if it's a Mach-O app, you should be able to invoke it directly, keeping in mind that the actual executable is inside a package. i'm not sure if the window server and friends will be offended by this in some way.
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Feb 13, 2002, 11:34 AM
 
Ok, you guys could have helped by providing a path. I thought that LaunchCFMApp was the way to do this but I could never find it (because it is not in PATH). Since that is all the you guys suggested, I figured that it must just be somewhere I haven't looked.

For anyone else interested in this, the location is:
/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp

This program also seems to work the way I had expected.

Thanks,
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Feb 13, 2002, 03:23 PM
 
Just wondering, what exactly is wrong with using open?
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Boulder, CO, USA
Status: Offline
Reply With Quote
Feb 13, 2002, 05:20 PM
 
Originally posted by Apocalypse:
<STRONG>Ok, you guys could have helped by providing a path. </STRONG>
maybe you should've mentioned the word "path" somewhere in your post...

here's another good path to remember:
http://developer.apple.com/techpubs/...on/carbon.html

the "tips and tricks" link is particularly helpful, and includes the path to LaunchCFMApp.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:41 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2