• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launching cml without duplicating Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching cml without duplicating Terminal


  • Subject: Re: launching cml without duplicating Terminal
  • From: Alex Keresztes <email@hidden>
  • Date: Wed, 12 Dec 2001 08:55:57 -0600

Instead of using an NSTask to launch an application use NSWorkspace's
functions.... like

- (BOOL)launchApplication:(NSString *)appName

Alex

On Wednesday, December 12, 2001, at 08:22 AM, Jake wrote:

> While the following worked fine launching the program. However if
> terminal
> is already open, it will open another copy(separate icon in the dock)
> and
> run the program. There is no man page for Terminal. So how does one
> open a
> commanline process without launching an additional copy Terminal if one
> is
> already running?
>
>
> NSArray *arg;
> arg = [NSArray arrayWithObject:@"/usr/bin/top"];
> [NSTask launchedTaskWithLaunchPath:
> @"/Applications/Utilities/Terminal.app/Contents/MacOS/Terminal"
> arguments:arg];
>
> thanks. jake
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: launching cml without duplicating Terminal
      • From: Jake <email@hidden>
References: 
 >launching cml without duplicating Terminal (From: Jake <email@hidden>)

  • Prev by Date: Re: Re: Status Bar
  • Next by Date: Re(2): More localization
  • Previous by thread: launching cml without duplicating Terminal
  • Next by thread: Re: launching cml without duplicating Terminal
  • Index(es):
    • Date
    • Thread