nisus.com
https://www.nisus.com/forum/

Instruction similar to "button returned" in Applescript
https://www.nisus.com/forum/viewtopic.php?f=17&t=6218
Page 1 of 1

Author:  pereelmagne [ 2015-11-17 14:17:25 ]
Post subject:  Instruction similar to "button returned" in Applescript

Let's say I have the following command:

Prompt Options $title, $someexplanation, $button, $checkbox1, $checkbox2, $checkbox3

How can I invoke the choice of the user, namely, the check box selected when clicking the button? In Applescript I would assign a variable to 'button returned'. Is there a similar way to do this on a macro?

Thanks in advance.

Author:  phspaelti [ 2015-11-17 15:34:02 ]
Post subject:  Re: Instruction similar to "button returned" in Applescript

pereelmagne wrote:
Let's say I have the following command:

Prompt Options $title, $someexplanation, $button, $checkbox1, $checkbox2, $checkbox3

How can I invoke the choice of the user, namely, the check box selected when clicking the button? In Applescript I would assign a variable to 'button returned'. Is there a similar way to do this on a macro?

Thanks in advance.


Code:
$choice = Prompt Options $title, $someexplanation, $button, $checkbox1, $checkbox2, $checkbox3


Afterwards $choice will have the value of $checkbox1, $checkbox2, or $checkbox3 depending on which was clicked.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/