Page 1 of 1

Instruction similar to "button returned" in Applescript

Posted: 2015-11-17 14:17:25
by pereelmagne
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.

Re: Instruction similar to "button returned" in Applescript

Posted: 2015-11-17 15:34:02
by phspaelti
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: Select all

$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.