• 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: "Stephen Swift" <email@hidden>
  • Date: Fri, 07 Jan 2005 09:02:41 -0500

From: Michelle Steiner <email@hidden>
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


Thanks Michelle. However, the version of Terminal that I am using (10.1.5) doesn't have that [in reference] parameter. I figured I'd probably run around in circles on this one. Perhaps if a conventional way isn't going to work, does anyone know of an osaxen that allows for global clipboard use or something?

Stephen Swift
_______________________________________________
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 multiple commands to one Shell
      • From: John Stewart <email@hidden>
  • Prev by Date: Setting print setup in Quark 5
  • Next by Date: Re: ftp chokes my mac....
  • Previous by thread: Re: Send multiple commands to one Shell
  • Next by thread: Re: Send multiple commands to one Shell
  • Index(es):
    • Date
    • Thread