Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?
Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?
- Subject: Open a new terminal tab or window from a Cocoa app at a certain directory without using NSAppleScript?
- From: Andrew <email@hidden>
- Date: Thu, 26 Jan 2012 10:13:14 -0700
I would like to perform the same logic as the "New Terminal Tab at Folder"
service in Finder in my Cocoa app. The only code I found via Google is all
using AppleScript to open the Terminal.app, but nothing I found was a Cocoa
interface besides 3rd party terminal apps (iTerm, iTerm2). Is there a
better way than using NSAppleScript to do this?
I do not see any core libraries for the terminal app, but perhaps I am just
looking in the wrong location.
If I were to use NSWorkspace, I tried using the "open" at the command line,
but I am not able to:
1. figure out how to open a new tab as opposed to a window
2. not have to run a program
3. it does not open the default terminal "theme"
Thanks,
Andrew
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden