• 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: Opening Terminal App at path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening Terminal App at path?


  • Subject: Re: Opening Terminal App at path?
  • From: Tom Waters <email@hidden>
  • Date: Wed, 27 Jun 2001 15:57:24 -0700

- (void)shellHere:(NSString *)path
{
id command = [NSString stringWithFormat: @"open -a Terminal '%@'", path];
system([command fileSystemRepresentation]);
}

There's a bug in that if this code has to launch Terminal.app, you'll get two windows, one where you want, and one where you'd normally end up by launching it the normal way. Once it's already running, it works like you'd expect.

On Wednesday, June 27, 2001, at 02:18 PM, Steve Gehrman wrote:

I heard there was a way to launch the Terminal Application and have it open a window at a given path. Is this true? How is this done.

steve


References: 
 >Opening Terminal App at path? (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: NSAffineTransform turning into NSCFString
  • Next by Date: Re: Opening Terminal App at path?
  • Previous by thread: Opening Terminal App at path?
  • Next by thread: Re: Opening Terminal App at path?
  • Index(es):
    • Date
    • Thread