Applescript button returned of list
Hi
Here is my script:
set firstList to {"Sincronizza proprietà avanzate", "Escludi proprietà avanzate"}
set listchoice1 to choose from list firstList with prompt "Le proprietà avanzate di una cartella sono l'icona della cartella, la posizione degli elementii al suo interno e l'icona delle cartelle al suo interno." with title "Fai una selezione" without multiple selections allowed
At the end of the list there are two buttons, "Ok" and "Cancel", if I select "Ok" it goes ahed, if I select "Cancel" it still goes ahed.
Instead I want that if the button "Cancel" is selected, regardless of the choice made, the application must close.
How can I do that?