Re: Changing terminal title - all or nothing
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