Applescript Display Dialog User Input -


i'm running applescript program asking user type in name. if user clicks "ok", name gets stored variable want. however, if user clicks "cancel", program quits. how set either hide "cancel" button, it's not option click, or set loop if cancel clicked, continues ask user his/her name until it's entered?

thanks in advance.

display dialog "please enter name." default answer " " title "enter name" 

simple solution

display dialog "please enter name." default answer " " title "enter name" buttons {"ok"} default button 1 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -