• 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 multiple commands to one Shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Send multiple commands to one Shell (From: "Stephen Swift" <email@hidden>)

  • Prev by Date: corrupted messages in Eudora - how to reset status w/ AS?
  • Next by Date: Re: corrupted messages in Eudora - how to reset status w/ AS?
  • Previous by thread: Re: Send multiple commands to one Shell
  • Next by thread: Re: Send multiple commands to one Shell
  • Index(es):
    • Date
    • Thread