Re: Send Terminal window crtl-c
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