View Full Version : Applescript choosing

don't do it
May 30, 2009, 08:54 PM
Ok i know ive seen it before but i cant seem to find it know. im trying to write a script where the computer has to choose a response from a list and i dont want it to prompt me asking what i want it to say.

May 31, 2009, 09:47 AM
Do you mean something like this?
set responseList to {"Hi", "Hello", "What's up", "Howdy", "Greetings"}
set randomNumber to (random number from 1 to (count responseList))

say (item randomNumber of responseList)

don't do it
Jun 1, 2009, 01:34 AM
Yes thank you very much for the script.