Thanks heda, I tried your code and although it's not quite what I was looking for, it will come in handy for a different situation. What your code did was increment each item so I ended up with item1:guitar_001, item2:guitar_002.., etc. What I'm looking for is say all items start out as guitar_001, then the script is ran once, they should become guitar_002, then if the script is ran again they become guitar_003. So I guess what is need, which I didn't think about before is a separate file that stores the increment value, and when the script is ran each time it picks up the value from the file and stores the next value. Or another idea, is there any way to query/poll the keyboard via a defered script? So what happens is the script is continuously running and for example each time the keyboards 'x' key is pressed then the items are incremented. @X-Raym, I like your idea of the offset function, so yes please post when you get a chance. Thanks guys