Skip navigation.
 
mlRe: exec(uting) Safari - How (newbie)
FROM : Clark Cox
DATE : Tue Jul 01 22:26:04 2008

On Tue, Jul 1, 2008 at 11:04 AM, Gregory Weston <<email_removed>> wrote:
> Barrie Green wrote:
>

>> Hi all,
>>
>> I want to write a quick little cocoa app that fires off Safari.
>>
>> ...
>>
>> Ideally I would like to run the app without it asking me for my
>> password, how could I achieve that?

>
> Considering that I can think of no common purpose for "launch Safari" that
> doesn't continue with "and show the contents of a designated file or URL"
> I'll point out that the proper way to achieve that goal is NSWorkspace's
> openURL: method. But I'll caution that it doesn't necessarily launch Safari;
> it launches the user's default web browser.


Also note that exec'ing an application and launching it are two very
different things. Running a Mac application via exec is almost never
the right thing to do. Use the appropriate NSWorkspace call (either
openURL: or launchApplication:) and forget about exec.




--
Clark S. Cox III
<email_removed>

Related mailsAuthorDate
mlexec(uting) Safari - How (newbie) Barrie Green Jul 1, 17:15
mlRe: exec(uting) Safari - How (newbie) Kristopher Matthew… Jul 1, 17:19
mlRe: exec(uting) Safari - How (newbie) Marcelo Alves Jul 1, 17:21
mlRe: exec(uting) Safari - How (newbie) Jason Coco Jul 1, 17:30
mlRe: exec(uting) Safari - How (newbie) Kyle Sluder Jul 1, 17:53
mlRe: exec(uting) Safari - How (newbie) Andrew Merenbach Jul 1, 18:45
mlRe: exec(uting) Safari - How (newbie) Ilan Volow Jul 1, 19:47
mlRe: exec(uting) Safari - How (newbie) Gregory Weston Jul 1, 20:04
mlRe: exec(uting) Safari - How (newbie) Clark Cox Jul 1, 22:26
mlRe: exec(uting) Safari - How (newbie) Kevin Elliott Jul 2, 02:17
mlRe: exec(uting) Safari - How (newbie) Kyle Sluder Jul 2, 05:44
mlRe: exec(uting) Safari - How (newbie) Jason Coco Jul 2, 06:45
mlRe: exec(uting) Safari - How (newbie) Jean-Daniel Dupas Jul 2, 09:30
mlRe: exec(uting) Safari - How (newbie) Jason Coco Jul 2, 16:58
mlRe: exec(uting) Safari - How (newbie) Jean-Daniel Dupas Jul 2, 17:36
mlRe: exec(uting) Safari - How (newbie) Clark Cox Jul 2, 17:38
mlRe: exec(uting) Safari - How (newbie) Jason Coco Jul 2, 17:44
mlRe: exec(uting) Safari - How (newbie) Jason Coco Jul 2, 17:46
mlRe: exec(uting) Safari - How (newbie) Clark Cox Jul 2, 18:45