• 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
Launching Terminal example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Launching Terminal example


  • Subject: Launching Terminal example
  • From: Matthew Harrison <email@hidden>
  • Date: Fri, 7 Jun 2002 17:06:45 +0100

Hi all,

I'm trying to launch the Terminal from within Cocoa, running a cmndline
program,

much like system("xterm -T \"My Program\" -e <prog>") on unix

I've successfully used NSTask to launch a "script.command" file, but that
just uses the cocoa-app's stdio.

I've also tried /Applications/Utilities/.../Terminal with a .term file, but
I get 2 Terminal windows, one with the default shell, and the other with the
shell specified in the .term file.

I'm sure there was a piece of sample code on the ADC which did this, but I
can't find it now...

any ideas?

many thanks in advance,

Matthew Harrison.
_______________________________________________
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 Terminal example
      • From: Nicholas Riley <email@hidden>
  • Prev by Date: coding and using character ranges for AppleScript
  • Next by Date: Re: About the accessibility stuff...
  • Previous by thread: coding and using character ranges for AppleScript
  • Next by thread: Re: Launching Terminal example
  • Index(es):
    • Date
    • Thread