<br><br><div class="gmail_quote">On Mon, Apr 21, 2008 at 11:36 AM, Allan Odgaard <<a href="mailto:throw-away-2@macromates.com">throw-away-2@macromates.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 17 Apr 2008, at 02:52, Mark Eli Kalderon wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is there a way to modify the Open Terminal command so that it uses tabs with Terminal.app? I have been trying to do this but my applescript-fu is weak. :/<br>
</blockquote>
<br></div>
I see there is plenty of support for this in the scripting dictionary, but I also don't get AppleScript.<br>
<br>
I tried first:<br>
<br>
tell app "Terminal" to return tabs of first window<br>
<br>
This worked fine, so then I tried:<br>
<br>
tell app "Terminal" to make new tab in first window<br>
<br>
That gave me:<br>
<br>
Terminal got an error: Can't make or move that element into that container. (-10024)<br>
<br>
And then I gave up :)<div><div><br></div></div></blockquote><div><br><br>I have honestly always been very surprised by the inconsistent scripting support among Apple apps.<br><br>That said, this works beautifully in iTerm:<br>
---<br>tell application "iTerm"<br> activate<br> tell the first terminal<br> launch session "Default Session"<br> end tell<br>end tell<br><br>-Chris <br></div></div>-- <br> Chris Patti --- Y!: feoh -- AIM: chrisfeohpatti --- E-Mail: <a href="mailto:cpatti@gmail.com">cpatti@gmail.com</a> <br>
"FORTRAN is just really good if you're really, REALLY twisted. Because the obscene things people do in FORTRAN are just horrible." - James Gosling