• 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: Caleb Strockbine <email@hidden>
  • Date: Thu, 14 Mar 2002 14:55:36 -0500

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
_______________________________________________
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.

  • Follow-Ups:
    • Re: Script terminal.app -without- opening a new term window?
      • From: Charles Bouldin <email@hidden>
References: 
 >Script terminal.app -without- opening a new term window? (From: Charles Bouldin <email@hidden>)

  • Prev by Date: Re: Script terminal.app -without- opening a new term window?
  • Next by Date: Re: Script terminal.app -without- opening a new term window?
  • Previous by thread: Re: Script terminal.app -without- opening a new term window?
  • Next by thread: Re: Script terminal.app -without- opening a new term window?
  • Index(es):
    • Date
    • Thread