• 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: how can I reliably query the correct terminal window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can I reliably query the correct terminal window?


  • Subject: Re: how can I reliably query the correct terminal window?
  • From: Doug McNutt <email@hidden>
  • Date: Wed, 3 Dec 2008 14:59:48 -0700

At 20:43 +0100 12/3/08, Skeeve wrote:
Doug McNutt schrieb:
 You can then do things like:
 tell application "Terminal" to do script "some file" in window FUN
Good idea, but unfortunately what I'm executing is a sequence of ssh commands which eventually log in to machines which change the window's name.

Most interesting. I do ssh's all over the place and I'd like to know how to execute any command "over there" that can change the window name.


This is how I create a new Terminal window, usually from a BBEdit worksheet where those $items have been defined..

osascript << ENDSCRIPT >& /dev/null
tell application "Terminal"
	do script ":" -- creates new window in front
	set title displays shell path of front window to false
	set title displays custom title of front window to true
	set custom title of front window to "$wintitle"
	do script "set prompt = '% '" in window "$wintitle"
	set bounds of window  "$wintitle" to $bounds
end tell
ENDSCRIPT

Is it possible that Terminal is resetting the title /name for you without being told to do it from an external source?

Or maybe "title" is the property you should use rather than "name".

And . . . I'm stuck on OS 10.3.9 because I refuse to give up my SE/30 file server.
--


--> A fair tax is one that you pay but I 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: how can I reliably query the correct terminal window?
      • From: Skeeve <email@hidden>
References: 
 >how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: "Mark J. Reed" <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Doug McNutt <email@hidden>)
 >Re: how can I reliably query the correct terminal window? (From: Skeeve <email@hidden>)

  • Prev by Date: Re: how can I reliably query the correct terminal window?
  • Next by Date: Re: how can I reliably query the correct terminal window?
  • Previous by thread: Re: how can I reliably query the correct terminal window?
  • Next by thread: Re: how can I reliably query the correct terminal window?
  • Index(es):
    • Date
    • Thread