Re: New window in Terminal.app
Re: New window in Terminal.app
- Subject: Re: New window in Terminal.app
- From: Doug McNutt <email@hidden>
- Date: Sat, 29 Jan 2005 09:23:10 -0700
At 16:10 +0100 1/29/05, wayne melrose wrote:
>tell app "terminal"
> do script "myscript" -- opens a new window
> do script "mysecondscriptline" in front window -- does the second line in the same window as the first line
>end tell
>
>On Jan 29, 2005, at 3:56 PM, Gnarlodious wrote:
>
>>When Terminal is NOT open and I use this command it then opens TWO windows.
>>Is there a way to force it to operate on the window it already opened?
More specifically, it is OK to tell Terminal to do script in the front window before there is a front window.
Apparently, when starting up, Terminal opens its default shell window before it actually processes the AppleEvent. With Terminal not running:
do script "myscript" in front window -- operates in the default window
do script "mysecondscriptline" in front window -- so does this
There may be some preference item in Terminal to tell it NOT to open a window but I don't know where it is. You can set up Terminal documents that can be opened and if you do that I don't think Terminal will open two windows at startup.
--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden