Need apple script

Discussion in 'Mac Programming' started by helpmeman, Feb 20, 2011.

  1. helpmeman, Feb 20, 2011
    Last edited: Feb 21, 2011

    helpmeman macrumors newbie

    Joined:
    Feb 20, 2011
    #1
    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.
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    Please explain why you need this.

    Where is the database of words? Something online? A file on your computer?
     
  3. helpmeman thread starter macrumors newbie

    Joined:
    Feb 20, 2011
    #3
    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.
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    You forgot to explain why you need this.

    If it's related to your other thread, try the suggestion made there.
     
  5. helpmeman thread starter macrumors newbie

    Joined:
    Feb 20, 2011
    #5
    I will...
     

Share This Page