List Processing

Desto

Новичок
Регистрация
25.10.2019
Сообщения
9
Благодарностей
2
Баллы
3
Hello,

Is there a way to use List Processing one after the other without deleting them ?
My script work well if I do "List Processing (from txt file) = > Get Line => First => Delete line after take, but I need to keep the list content because the script runs in a loop once a day with the same data.

Exemple of my list :
  • Nike
  • Disney
  • Uber
  • Etc,
I would simply like the list to be processed one line after the other.
I know the amount of total value so I use a counter to stop my script.

Let me know if you have any idea.

Thanks for your help.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
If You know the list count then eg. 100 lines.
Make one main file, full with data MainKeys.txt
Then Make another list ActualKeys. txt.
Take lines from actual list one after another and delete it.
Check ActualList count in every run.
When count = 0 copy all data from MainKeys to ActualKeys for the next day.
Set executions to 101. 100 lines and 101 will copy file.
 
  • Спасибо
Реакции: Desto

Desto

Новичок
Регистрация
25.10.2019
Сообщения
9
Благодарностей
2
Баллы
3
Hello lokiys,

Thanks for your answer.
I'll try with this solution. I guess if I don't know the number of lines it's more complicated to set up?

Thanks.
 

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Hello lokiys,

Thanks for your answer.
I'll try with this solution. I guess if I don't know the number of lines it's more complicated to set up?

Thanks.
ZennoPoster does not keep track of what the last line you have taken.
You need some logic to do that.
My example is just one way how to get what you want.
You can always check how many lines you have in the file and set your other templates according.
You can use the different templates just what will control how many times it will run when it will run, what data it will copy where and when.
Or keep track in the different files what line you took last. So you know with next execution what line to take next.
 
  • Спасибо
Реакции: Desto

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)