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
Post a Comment