Intrigued by the possibility, dropped casually in an earlier thread, that a
.mt script could "invoke handlers" on a stack that resided in the same
cgi-bin... wondering if this is really as simple as it sounds ( I could just
test this, but for newbie lurkers it could be useful to see the dialogue):

Let's say I create a stack [call it "Site Manager"] on my machine  (Mac G4)
running under the MC Home stack GUI that handles a bunch of administrative/
maintenance tasks over a local  back up of a web site...  now let's say
there is a single  button on card one that "triggers" one or all of these
processes, let's call it

"Run Link Updates" 
   [gets data from fields or custom props of things to fix/change replaces
to make, insert ssi's etc.]

Does this mean then that all you need to do in the .mt script (call it
"run_updates.cgi") is

on startup
  send mouseup to button "Run Link Updates" \
      of card 1 of stack "Site Manager"
end start up

which you could then "trigger' from home with a button (which could live on
the same card on the same stack at home)

on mouseup
 get "http://www.remote-site.com/cgi-bin/"run_updates.cgi";
end mouseUp

Did we get it right? would it be that simple?


and...is it correct to assume that for the .mt script the default directory
is where it currently lives...i.e. cgi-bin

And that, if the the stack is in the same directory...one does not have to
set the directory to anything else.

If all of the above is true, then, for sure, we have found a doorway to
"there's an easier way to do that!"


Hinduism Today

Sivakatirswami
Editor's Assistant/Production Manager
[EMAIL PROTECTED] 
www.HinduismToday.com, www.HimalayanAcademy.com,
www.Gurudeva.org, www.hindu.org



Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to