Jump to content
UBot Underground

Post multiple lines from txt file


Recommended Posts

Is it possible to do the following:

 

Example:

 

I have a file with 20.000 lines.

Now i want X lines in once pasted in a field.

For instance 4 lines.

Is this possible and, if yes, how can i achieve this?

Link to post
Share on other sites

Hi - if you are changing the value of a certain field and are pasting from a file then - add multiple next list item commands - if you need to seperate them with a space then just add a spave between the variables - I have attached a image for an example

 

http://bigseotechniques.com/tutorials/nextlist.GIF

Link to post
Share on other sites

Hi - if you are changing the value of a certain field and are pasting from a file then - add multiple next list item commands - if you need to seperate them with a space then just add a spave between the variables - I have attached a image for an example

 

http://bigseotechniques.com/tutorials/nextlist.GIF

 

wow that's a pretty fast reply.

Thanks abs.

Appreciated.

Will try this out :)

Link to post
Share on other sites
  • 3 weeks later...

trying to do the same thing but instead of 3 or 4 i need to do 500 at a time. is this even possible?

Thats aloooooot of stuff added at the same time. Try it, and if it doesn't work, remove one at a time until it works :)

Link to post
Share on other sites
  • 2 weeks later...

Hi - if you are changing the value of a certain field and are pasting from a file then - add multiple next list item commands - if you need to seperate them with a space then just add a spave between the variables - I have attached a image for an example

 

http://bigseotechniques.com/tutorials/nextlist.GIF

 

Does not work...:(

It takes only 1 from the list and gives errors

I have set that it must grab 5 items in once from the list (the list contains 7 items so it should not give the error that it exceeded the range of the script).

 

"You have exceeded the range of the list"

 

"$next list item"

Link to post
Share on other sites

Enigma try "Set List Position" and set the position to 0.

That will tell it to start over when it get to the end without erroring, unless you run out of list items.

You can find set list position under the Variable Commands in the Tool Box.

Link to post
Share on other sites

Enigma try "Set List Position" and set the position to 0.

That will tell it to start over when it get to the end without erroring, unless you run out of list items.

You can find set list position under the Variable Commands in the Tool Box.

 

Thanks for your time Lilly.

But will this start at 0 everytime in the loop?

That means it will keep sending duplicates then.

Link to post
Share on other sites

It will start at 0 when you stop and start your script. Next list Item should not error unless you have run out of list items. Just try it and let us know how it goes.

Link to post
Share on other sites

I'm stuck with this same issue. is there a better way/faster way to add a larger list, 100 to a field.

 

I have a list of 20k and I want to take out 100 each time and the next 100.

 

There's gotta be a better way then to add 100 $next list item variable command.

Link to post
Share on other sites

I figured this out....by help from another post - I think from alcr

 

Here's a screen shot of what I did. Obviously you can change the loop to the number you want. I have it set at 50.

post-1039-12798217738204_thumb.jpg

Link to post
Share on other sites

Enigma try "Set List Position" and set the position to 0.

That will tell it to start over when it get to the end without erroring, unless you run out of list items.

You can find set list position under the Variable Commands in the Tool Box.

 

Does not work.

Still get the same error "You have exceeded the range of the list"

 

As you see it only post the first $nextlistitem

post-376-12799123080964_thumb.png

Link to post
Share on other sites

Hi I wonder if you are still looking for a solution. I don't know how this post will appear on the forum as I am posting through my iPod lol...

 

Well as I m not close to my laptop atm so just a though, I believe that it should work.

 

Ok, if you are posting then I believe u must be running some sort of loop there,

 

Now u have 1 list in which u store 20,000 lines, so what u can do now is :

 

1. Set a var something. // this is the no. Of lines u wanna post

2. Get an input for the var through the UI

3. Create a new list

4. Now start a loop

Loop

( evaluate

next lst item(list 1) = current list item(new list item)

Increment list position ( new list)

)

 

5. So now you will have in your new list all the no. Of line you wanna post.

6. Now go and choose the field by attribute and send keys to the field choose-> insert list -> new list.

7. Don't forget to clear your new list every posting cycle so u don't have any last data.

 

So, how does that sound...?

 

Well it should all work just fine I'll try it when I get to computer.

 

Tell me if it works, i recon it will..

 

I was just getting bored at work so jumped on to the forum..

 

Cheers mate

 

Praney :)

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...