• 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: Changing terminal title - all or nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing terminal title - all or nothing


  • Subject: Re: Changing terminal title - all or nothing
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 14 Mar 2008 21:41:21 -0400

On Fri, Mar 14, 2008 at 4:53 PM, Dan Shechter <email@hidden> wrote:
>  on run argv
>  tell application "Terminal"
>  set custom title of  front window  to   item 1 of argv
>  end tell
>  end run

Well, Terminal understands the xterm titlebar escapes, so you can do this:

tell application "Terminal" to tell front window
	do script "echo -e -n '\\033]2;'" & quoted form of item 1 of argv
end tell

although that opens a new window on my machine instead of running in
the current one.. I don't know much about Terminal, so maybe someone
else can help there.

>  BTW, it works well for iTerm...

If you have iTerm, why are you messing about with Terminal?
Compatibility for a script you distribute?
--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Changing terminal title - all or nothing (From: Dan Shechter <email@hidden>)

  • Prev by Date: Re: Date math problem in Leopard
  • Next by Date: Re: File best practice questions
  • Previous by thread: Re: Changing terminal title - all or nothing
  • Next by thread: Date math problem in Leopard
  • Index(es):
    • Date
    • Thread