Why does this open two different windows and run each script in a different window? Is there a way to tell it to use the same window?
var Terminal = Application('Terminal');
Terminal.activate();
var window = Terminal.windows[0]
Terminal.doScript('ls',window);
Terminal.doScript('cd Desktop',window);
Thanks