• 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: Send Terminal window crtl-c
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Send Terminal window crtl-c


  • Subject: Re: Send Terminal window crtl-c
  • From: Björn Lundin <email@hidden>
  • Date: Mon, 4 Sep 2006 22:52:11 +0200


4 sep 2006 kl. 15.51 skrev Gnarlodious:

How would one send an open Terminal window a ctrl-c to stop a process?

For example:

tell application "Terminal"
do script "top" in front window
delay 10
do script "^c" in front window
end tell

In this example, the ctrl-c doesn't quit the top window.

top quits if you press 'q' in the window too, It may be easier to send 'q' than ctrl-C ?


/Björn

Björn Lundin
b dot f dot lundin at gmail dot com



 _______________________________________________
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: Send Terminal window crtl-c
      • From: Gnarlodious <email@hidden>
References: 
 >Send Terminal window crtl-c (From: Gnarlodious <email@hidden>)

  • Prev by Date: RE: question for sending multiple requests to iTunes
  • Next by Date: Re: Send Terminal window crtl-c
  • Previous by thread: Re: Send Terminal window crtl-c
  • Next by thread: Re: Send Terminal window crtl-c
  • Index(es):
    • Date
    • Thread