I am new to AppleScript and this is simple code so I am sure someone here can help!
I want to create a dialog box where if you click No it will quit my app but if I click Yes it will do nothing... Can anyone help?
Here is my code ATM, it wont compile.
I want to create a dialog box where if you click No it will quit my app but if I click Yes it will do nothing... Can anyone help?
Here is my code ATM, it wont compile.
Code:
display dialog "Wonna do more?" buttons {"No", "Yes"} default button 1
if button returned of result = "No" then
tell application "YouTube Video Downloader"
quit
end tell
else
(* do nothing *)
end clicked