Ghoast 0 Posted August 22, 2012 Report Share Posted August 22, 2012 I have a folder on my computer. It's called /photos I have many images in this folder. My bot creates blogs. I want my bot to go through the images in this folder and upload one image per blog site. Each image can only be used on one site and can only be used once. How do I go through a folder systematically like this? I can do this very easily when I'm working with a .txt list but I'm not sure how to do it when it comes to files within folders instead of just lines within a .txt file.. Thanks! Quote Link to post Share on other sites
P0s3id0n 90 Posted August 22, 2012 Report Share Posted August 22, 2012 Here is how you can tackle this issue Just add all images paths to a list. All images in the folder should be in the order that you want to use them; then when posting just use next list item. See an example below: add list to list(%blogimages, $get files("path of your images folder here", "Yes"), "Delete", "Global") change file field(<element of upload button here>, $next list item(%blogimages)) Quote Link to post Share on other sites
jomark3 25 Posted August 23, 2012 Report Share Posted August 23, 2012 Here is how you can tackle this issue Just add all images paths to a list. All images in the folder should be in the order that you want to use them; then when posting just use next list item. See an example below: add list to list(%blogimages, $get files("path of your images folder here", "Yes"), "Delete", "Global") change file field(<element of upload button here>, $next list item(%blogimages)) Or... you could get the list from your computer, upload the image using the path in position 0, then delete that item from the list and and re-save the new list to your computer. Quote Link to post Share on other sites
Ghoast 0 Posted September 3, 2012 Author Report Share Posted September 3, 2012 Thanks a lot guys helpful stuff! Quote Link to post Share on other sites
Ghoast 0 Posted September 6, 2012 Author Report Share Posted September 6, 2012 haha, it was a great fix - but 'this is not allowed with you current version of the software' - lol ubot is such a joke.. I mean WTF? I get mult-threading being for advanced and dev but just a bloody add files command? pfffff... Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.