Instruction similar to "button returned" in Applescript

Get help using and writing Nisus Writer Pro macros.
Post Reply
pereelmagne
Posts: 10
Joined: 2015-06-27 01:38:22

Instruction similar to "button returned" in Applescript

Post by pereelmagne » 2015-11-17 14:17:25

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.

User avatar
phspaelti
Posts: 943
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Instruction similar to "button returned" in Applescript

Post by phspaelti » 2015-11-17 15:34:02

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

Post Reply