Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

helpmeman

macrumors newbie
Original poster
I need an apple script that will generate a random word from a database of words and enter it into a searchbox. In other words, I need an apple script to auto search for me.

This is what I have so far:

repeat 100 times
set x to {}
repeat (random number from 4 to 10) times
set end of x to some item of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
end repeat
display dialog x as string
end repeat

As you can see, it's not exactly what I am looking for.
 
Last edited:
Please explain why you need this.

Where is the database of words? Something online? A file on your computer?
 
Please explain why you need this.

Where is the database of words? Something online? A file on your computer?

Either one works. I would prefer to have a list in the code that I can add to, but if it needs to be saved elsewhere that's fine.
 
You forgot to explain why you need this.

If it's related to your other thread, try the suggestion made there.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.