Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Apple Script help!

hi, i want to make a "chat" program with Apple Script but there is something i just dont know how to get to work! 😟


this is what i got so far..



say "hi"
delay 2
say "how are you"
delay 5
say "cool, do not tell me more!"
say "because i do not really like you!"
say "do you want to talk more?"
display dialog "Do you want to talk more?" buttons {"yes", "no"}
if the button returned of the result is "no" then
  quit
else
          say "ok then, What do you want to talk about?"
          display dialog "What do you want to talk about?" default answer "Tell me!" buttons {"OK"} default button 1
          if the text returned of the result contains "city" then
                    say "oh yes, Halden is a beautifull city. i really like me here."
          end if
  
          if the text returned of the result of the contains "samsung" then
                    say "i dont want to talk about Samsung, i just dont like it!"
          end if
end if


i just want to make it so that i can write some thing then it responds and then after that i can write something else.. but i cant really get it to work :/


please help!! 😀

Mac mini, OS X Mountain Lion (10.8.2), 2010 edition

Posted on Jan 29, 2013 10:42 AM

Reply
1 reply

Apple Script help!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.