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