• 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: Script terminal.app -without- opening a new term window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script terminal.app -without- opening a new term window?


  • Subject: Re: Script terminal.app -without- opening a new term window?
  • From: Charles Bouldin <email@hidden>
  • Date: Thu, 14 Mar 2002 15:46:08 -0500

At 2:55 PM -0500 3/14/02, Caleb Strockbine wrote:
On Thursday, March 14, 2002, at 02:05 PM, Charles Bouldin wrote:

Is there any way to force terminal to use an existing window? The
reason is that I run a unix cli program from terminal.app and get
grahical output via pgplot in another xwindow. A first cut at putting
an "interface" on the cli program is to use applescripts to run
terminal, and then perhaps use applescript studio to make a simple
GUI. This approach has the great benefit that it leaves the unix
program untouched, but so far I am completely stymied by this
apparent limitation in scripting terminal.


Why does Terminal need to be involved at all? AppleScript can
start a shell process and execute shell commands. As long as
your xwindow client can open the window it needs, I think you'll
be fine.

Example:
do shell script "ls"

The script above returns the output from ls in the result window.

hope that helps,

Caleb Strockbine


Doesn't really help me. I can certainly do something like
do shell script "plotit"
to launch the graphics program, but then how to send commands to it once the program is running? I tried something like
do shell script "cat temp.dat | plotit" after first putting commands for plotit into temp.dat, but this gives me an error message "zsh: permission denied: plotit"....which is funny, because doing the "cat temp.dat | plotit" from the terminal works fine.

Side note: do shell script invokes zsh, apparently. How do you specify which shell to use? Can you?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Script terminal.app -without- opening a new term window? (From: Caleb Strockbine <email@hidden>)

  • Prev by Date: Re: Script terminal.app -without- opening a new term window?
  • Next by Date: Re: Getting the Documents Folder
  • Previous by thread: Re: Script terminal.app -without- opening a new term window?
  • Next by thread: "Newt On" project
  • Index(es):
    • Date
    • Thread