2 Jun
2011
2 Jun
'11
7:14 p.m.
Hi all, I'm playing around with Scripting Bridge trying to script Terminal.app. I'm running into issues with adding a new tab to a window, and was hoping someone could point me in the right direction. Consider this gist: https://gist.github.com/1005066 The only information I could find that was remotely similar was doing something similar with Safari here: http://stackoverflow.com/questions/2912161/new-tab-in-safari-window-from-coc... I tried converting that over to MacRuby, and I get the same error as when I try my gist above. RuntimeError: NSInvalidArgumentException: *** -[SBElementArray addObject:]: can't add an object that already exists. Hopefully I'm just doing something silly? Thanks for the help, Daniel