Re: Send multiple commands to one Shell
Re: Send multiple commands to one Shell
- Subject: Re: Send multiple commands to one Shell
- From: Doug McNutt <email@hidden>
- Date: Thu, 6 Jan 2005 15:47:11 -0700
At 07:15 -0500 1/6/05, Stephen Swift wrote:
>I am trying to figure out a way to get applescript to do a command (or insert text) into an open Terminal window (so I can do many commands in that one window).
When the command count gets too long for semicolons I write out a file with the commands in it and use a do shell script to execute it.
Actually I keep a file around for the purpose that has the execute permission bit set and a #!/usr/bin/tcsh line at the start so I can use the shell of my choice.
Well, actually I usually find it easier to prepare the file with BBEdit than to put stuff in there with writes in AppleScript. You can pass arguments from AppleScript to your shell script easily. And. . .
<ducking>
Scripting with tcsh is a whole lot easier to learn than AppleScript.
</ducking>
--
--> There are 10 kinds of people: those who understand binary, and those who don't <--
_______________________________________________
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