Re: Send multiple commands to one Shell
Re: Send multiple commands to one Shell
- Subject: Re: Send multiple commands to one Shell
- From: Michelle Steiner <email@hidden>
- Date: Thu, 6 Jan 2005 22:45:48 -0700
On Jan 6, 2005, at 10:27 PM, Stephen Swift wrote:
Why not use "do shell script"? Separate the commands with a semi
colon.
Because I don't have them all up front. The script idles in the
background and sends a command upon a trigger.
Something like this:
on run
tell application terminal
activate
end run
on idle
if BOOL then
--send a command to an open terminal window
end if
return 10
end idle
I don't have the original message, so I don't know whether you tried
this (from Terminal's dictionary):
do script: Run a UNIX shell script or command
do script plain text -- data to be passed to the Terminal
application as the command line
[in reference] -- the window in which to execute the command
-- Michelle
--
I'm at an age where I can satisfy my wants without too many guilt
feelings.
_______________________________________________
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