Karl Becker wrote:
>
> > > Everything works fine with the handler, except for one thing - how
> >> could I get the value of the button the user clicks on? I'd ideally
> >> like to use this handler just like the "answer" command works, but I
> >> don't know how to pause execution of the script that calls
> >> displayMessage.
> >> Any ideas on how, or even if, this is possible? Thanks!
> >
> >I'm not sure I understand what "the value of the button" means but if
> >you want to know which button was clicked that should be returned in
> >"it".
>
> The problem I have is not with putting "the value of the button"
> (sorry, should've just said the name of the button) into "it" but
> rather with halting operating of a script until a button in this
> group is clicked. The script to display some message and get a
> returned value would look like this:
>
> on doStuff
> displayMessage "theMessage","Cancel","OK"
> put it into theChoice
> end doStuff
>
> However, "it" is empty after execution of displayMessage, because all
> that displayMessage does is make a group and put it into the middle
> of the stack for the user to click on it - I need to figure out some
> way to pause execution of the script so that "it" actually contains
> the name of the button clicked.
> ...hope I'm explaining this well enough, I've barely been able to get
> my ideas over on e-mail right now, I'm having eternal brain farts
> right now :-P
No problem, its an epideny;-) I think if you open a modal window like
the answer dialog the script will halt until you close the window
usually returning the "it". If I'm missing the point send me a stack off
the list.
> --
> Karl Becker, KB Productions - http://www.karlbecker.com
> Featuring:New Tricks, Tiger's Eye Pub, and The Fishin' Hole
Andu
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.