• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: New window in Terminal.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: New window in Terminal.app
      • From: Bill Briggs <email@hidden>
References: 
 >Re: New window in Terminal.app (From: Gnarlodious <email@hidden>)
 >Re: New window in Terminal.app (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: New window in Terminal.app
  • Next by Date: sending Apple events between users (Pause iTunes of different user, redux)
  • Previous by thread: Re: New window in Terminal.app
  • Next by thread: Re: New window in Terminal.app
  • Index(es):
    • Date
    • Thread