Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Applescript > Scripting Termi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 1539 of 1611
Post > Topic >>

Scripting Terminal under Leopard

by Chris Schram <schram@[EMAIL PROTECTED] > Nov 26, 2007 at 12:41 AM

Under Leopard I am making an AppleScript that launches Terminal.app, moves
its window to a specific screen location, makes three tabs and runs a
command in each tab.

I can't for the life of me find a command to create tabs. I ended up using
GUI programming and sending Cmd-T a couple of times, but that sure sounds
like a sledgehammer way to do something pretty simple in an already
scriptable application. Ideas anyone?

Strangely enough, moving Terminal's window turned out to be a problem too.
I can do it with 'set origin' & 'set size' but the dictionary says that
those commands are deprecated and I should use 'set bounds' instead.

If I put the window where I want it and run 'get bounds' and then plug the
resulting output into a 'set bounds' command, the window pops to a strange
location. I'm calling this a bug in either AppleScript or Terminal's
dictionary, but I wanted to run it past the group before I report it to
Apple.

-- 
schram@[EMAIL PROTECTED]
 is a filtered spam magnet. Email replies may get lost.
Try <http://public.xdi.org/=chris.schram>
instead.

-- 
Posted via a free Usenet account from http://www.teranews.com




 1 Posts in Topic:
Scripting Terminal under Leopard
Chris Schram <schram@[  2007-11-26 00:41:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 23:53:50 CDT 2008.