Guest_imported
New member
- Jan 1, 1970
- 0
I learn best from seeing samples of scripts so it'd be great if someone could
show me a sample script of the folling. You have a list of something such as
"apple,orange,grape,lemon" located as a text file in the same directory and
you have it do a task for each item in the list. For the sake of simplicity,
let's say you just print each word. So this is what the general over view is
set variable x to the contents of the text file
repeat (ammount of times in list) times
set y to the item from x
print y
end repeat
And end up with it printing "appleorangegrapelemon".. this isn't exactly what
I want to do so please don't just give me a script that replaces ","s with
nothing.. please have it in the format I listed and this will be greatly
appreciated. This is for a special type of forum btw, and I just can't figure
this out. Thanks alot in advance
show me a sample script of the folling. You have a list of something such as
"apple,orange,grape,lemon" located as a text file in the same directory and
you have it do a task for each item in the list. For the sake of simplicity,
let's say you just print each word. So this is what the general over view is
set variable x to the contents of the text file
repeat (ammount of times in list) times
set y to the item from x
print y
end repeat
And end up with it printing "appleorangegrapelemon".. this isn't exactly what
I want to do so please don't just give me a script that replaces ","s with
nothing.. please have it in the format I listed and this will be greatly
appreciated. This is for a special type of forum btw, and I just can't figure
this out. Thanks alot in advance