# Appending Text using TypeText? Increments?

**URL:** <https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562>\
**Category:** Eggplant Functional\
**Created:** [March 20, 2007, 3:07pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562 "2007-03-20T15:07:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bass-O-Matic](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/bass-o-matic/32/107_2.png) [@Bass-O-Matic](https://forums.eggplantsoftware.com/u/Bass-O-Matic)\
**Post date:** [March 20, 2007, 3:07pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/1 "2007-03-20T15:07:43Z")

</div>

Hello!

So, I want to set a script up to simply go to our website and register a new user… then another one… then another one… then another one… to about 100… and they told 2 friends and they told 2 friends… remember that ad? silly wasn’t it… and since i didn’t wash my hair in the 70’s who cared anyway?

But I digress… So when I TypeText into a field how do I make it type something different each time… say the first run Type User1, Second Run User2, and so on… oh… and repeat the script 100 times? Interesting huh?

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![FHQWHGADS](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@FHQWHGADS](https://forums.eggplantsoftware.com/u/FHQWHGADS)\
**Post date:** [March 20, 2007, 3:12pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/2 "2007-03-20T15:12:44Z")

</div>

Hello, bass-o-matic–

You could put the users into a text file:  
User1  
User2  
user3  
user4

Then you can say:

```auto
put file "/Path/to/users.txt" into userList
repeat with each item user in userList
...do your registration stuff here...
end repeat

```

Does this help? If you wanna get really fancy, you can create a property list.

---

<div class="post-metadata">

**Author:** ![JonathanOSX](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/jonathanosx/32/4_2.png) [@JonathanOSX](https://forums.eggplantsoftware.com/u/JonathanOSX)\
**Post date:** [March 20, 2007, 3:16pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/3 "2007-03-20T15:16:29Z")

</div>

Or slightly less fancy…

```auto
repeat 100 times
    typetext "User" & repeatIndex() 
end repeat

```

The & is the concatenate operator, repeatIndex() is a function to return the current index of the innermost loop.

---

<div class="post-metadata">

**Author:** ![Bass-O-Matic](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/bass-o-matic/32/107_2.png) [@Bass-O-Matic](https://forums.eggplantsoftware.com/u/Bass-O-Matic)\
**Post date:** [March 20, 2007, 3:24pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/4 "2007-03-20T15:24:29Z")

</div>

I like em both! I’ll check em both and report back… thanks gang!

---

<div class="post-metadata">

**Author:** ![FHQWHGADS](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/f/c5a1d2/32.png) [@FHQWHGADS](https://forums.eggplantsoftware.com/u/FHQWHGADS)\
**Post date:** [March 20, 2007, 3:43pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/5 "2007-03-20T15:43:54Z")

</div>

[quote=“JonathanOSX”]Or slightly less fancy…

```auto
repeat 100 times
    typetext "User" & repeatIndex() 
end repeat

```

The & is the concatenate operator, repeatIndex() is a function to return the current index of the innermost loop.[/quote]

Just goes to show where I am working today. That is much quicker…

---

<div class="post-metadata">

**Author:** ![Mr\_quot\_P\_quot](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/m/a9adbd/32.png) [@Mr\_quot\_P\_quot](https://forums.eggplantsoftware.com/u/Mr_quot_P_quot)\
**Post date:** [March 20, 2007, 4:42pm UTC](https://forums.eggplantsoftware.com/t/appending-text-using-typetext-increments/1562/6 "2007-03-20T16:42:05Z")

</div>

less fancy=much less chance of falling down the well. Both methods have merit, but for now the simple one is “betterer”. Data files play an important role.

I fell down the big one today…calling a data file that didn’t have the right name ( too many camera models swimming in my head, each with a different set of characteristics) . Too many big white pills today also. How many ways can I say:

TypeText “d” & “u” & “h”
