• 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: Sending Control-T to Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Control-T to Terminal


  • Subject: Re: Sending Control-T to Terminal
  • From: Helmut Fuchs <email@hidden>
  • Date: Wed, 25 Sep 2002 13:38:57 +0200

At 6:02 Uhr -0500 25.09.2002, Jeffrey Berman wrote:
> I am sending a Control-T sequence to a terminal window with the following:

tell application "Terminal"
> do script (ASCII character 20) in window 1
end tell

This triggers the expected response but also includes a line feed that does
not occur if I type Control-T from the keyboard in the Terminal application.

Is there a way to send the Control-T sequence from the script without also
triggering a line feed?

-Jeffrey Berman

Does the lack of a response to this question mean there is no way to
suppress the line feed when sending a control-key sequence to Terminal?
No. It simply means that nobody knows or has cared about doing this - AFAIK "do script" is not intended to send keystrokes to the Terminal, but to execute scripts. Have you already had a look at Terminal's dictionary? (I'm still running on 10.1.5, so I can't say anything helpful on that - I suppose you're running 10.2 already?)

I don't know how "do script" is implemented, but as you say that the above works for you, I suppose it just pipes everything to the Terminal and adds a line feed. If reinterpretation of the linefeed as whitespace is enough for you then you could just try and append a backslash to escape the linefeed:

do script ((ASCII character 20) & "\\") in window 1

HTH,

Helmut
--
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Shell Scripting
  • Next by Date: text to speech volume
  • Previous by thread: Re: Sending Control-T to Terminal
  • Next by thread: Re: Sending Control-T to Terminal
  • Index(es):
    • Date
    • Thread