Re: Script terminal.app -without- opening a new term window?
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.