I'm trying to lunch terminal window and go to some local path in it:
my code:
public class func openShell(at url: URL?) {
guard let url = url else { return }
let shellProcess = Process();
shellProcess.launchPath = url.path;
//shellProcess.arguments = [
// "osascript -e 'tell application \"terminal\" to do script \"cd \(url)\"'"
//];
shellProcess.launch();
}
but as result there is some output into debug console inside of XCode but no shell window is opened.
commented code - alternative way that I have tried