Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Carbon Run Command



LaunchServices worked great.  Thanks

-----Original Message-----
From: carbon-dev-bounces+paul=email@hidden
[mailto:carbon-dev-bounces+paul=email@hidden] On Behalf Of
Chris Hanson
Sent: Tuesday, August 07, 2007 4:13 PM
To: Chris Espinosa
Cc: Carbon Dev
Subject: Re: Carbon Run Command

On Aug 7, 2007, at 12:29 PM, Chris Espinosa wrote:

> If you want to launch another windowed application, use  
> LaunchServices.
>
http://developer.apple.com/documentation/Carbon/Conceptual/LaunchServicesCon
cepts/LSCIntro/chapter_1_section_1.html
>
> If you want to execute a task in its own process, use the standard  
> Unix exec or system commands.

Do not use system(3) or popen(3).  They will invoke a task inside the  
user's shell -- whatever they have set it to -- and you will be at the  
mercy of the user's PATH, the quoting conventions unique to the shell  
they've chosen, and so on.

Either use LaunchServices or NSWorkspace for applications, or fork/ 
exec or NSTask for command-line tools.

   -- Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >Carbon Run Command (From: "Paul McEwan" <email@hidden>)
 >Re: Carbon Run Command (From: Chris Espinosa <email@hidden>)
 >Re: Carbon Run Command (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.