Making an AppleScript but for some reason it isn't working. Any ideas why not?

delay 1
set volume 1
say "Hello " & (do shell script "whoami") using "Whisper"
say "Do you want to play a game?" using "Whisper"
display dialog "Do you want to play a game?" buttons {"Yes", "No"} default button 1
if the button returned of the result is "Yes" then
-- say "Bwahahahaha!"
-- display dialog "Big mistake" & (do shell script "whoami")
end if

Works for me, but I had to set volume 6 to make it audible.

"Big mistake" should be "Big mistake " -- that space matters.

  • I still can't get any audio on the action buttons, nothing happens. :( – Smally Douglas Aug 16 '15 at 23:49
  • -- comments out a line. So changing -- say "Bwahahahaha!" to say "Bwahahahaha!" should fix that – Wayfaring Stranger Aug 17 '15 at 0:58
  • Hey, do you have any ideas on how to make this even creepier? – Smally Douglas Aug 17 '15 at 7:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .