<?xml version="1.0" encoding="windows-1252"?>
<node id="32561" title="RE: RE: GUIs and CLIs" created="2000-09-14 20:56:06" updated="2005-07-21 01:19:39">
<type id="11">
note</type>
<author id="9073">
merlyn</author>
<data>
<field name="doctext">
Maybe it's a matter of terminology, but I bet you aren't scripting the GUI.  You are driving the GUI from "command-line" programs that can display graphics widgets.
&lt;p&gt;
But let me come along and now try to "script" your application.  I can't.  I haven't
found any decent "scripting language" for your typical "GUI" that
let's me say "click THIS button when THAT button turns green".  If you have, please
help us out here.
&lt;p&gt;
Sure, I use multiple windows, with CLIs in each window.  I don't call that a GUI.
I call the gimp or Photoshop (depending on your bent) a GUI.  Try scripting
&lt;b&gt;that&lt;/b&gt; in a meaningful way.  It won't be from the GUI end.  Gimp scripting is
done because they have a (surprise!) CLI interface specially grafted on to the back
end.  And Photoshop has its little macro language, and I can tweak at that with
some Applescript if I'm desparate.  But it's just not the same as taking the
output of "ps" and looking for the "httpd" processes. 
&lt;p&gt;Imagine if you didn't
have "ps", but &lt;b&gt;only&lt;/b&gt; the "top" program.  (Welcome
to MacOS or Windows98 {grin}). This is what I'm talking about.
You cannot script a GUI!

&lt;p&gt;-- &lt;a href="http://www.stonehenge.com/merlyn/"&gt;Randal L. Schwartz, Perl hacker&lt;/a&gt;&lt;/p&gt;</field>
<field name="root_node">
32376</field>
<field name="parent_node">
32556</field>
</data>
</node>
