• 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
Odd behavior scripting Terminal's default window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Odd behavior scripting Terminal's default window


  • Subject: Odd behavior scripting Terminal's default window
  • From: Gnarlodious <email@hidden>
  • Date: Thu, 03 Feb 2005 22:00:45 -0700

I'm wondering if there is any rhyme or reason for this.

It seems that when Terminal starts it can't set the window title for the
default window.

Quit Terminal, then say:

tell application "Terminal"
    do script "echo 'Terminal launched' "
    tell window 1 to set custom title to "Applescript result"
    tell window 2 to close
end tell

Is there some way to avoid opening a redundant window just to close it? I
did try:

    do script "echo 'Terminal launched' " in front window

however this gives me an unmodifiable window title.

--
Privatizing Social Security;  a solution in search of a problem
                                               -- Gnarlodious


 _______________________________________________
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: Odd behavior scripting Terminal's default window
      • From: Martin Orpen <email@hidden>
    • Re: Odd behavior scripting Terminal's default window
      • From: Christopher Biagini <email@hidden>
  • Prev by Date: Re: Building applescript records with lists, accessing applescript records with strings
  • Next by Date: Re: Odd behavior scripting Terminal's default window
  • Previous by thread: Re: Building applescript records with lists, accessing applescript records with strings
  • Next by thread: Re: Odd behavior scripting Terminal's default window
  • Index(es):
    • Date
    • Thread