Jump to content
UBot Underground

List Of Images Getting All Screwed Up....


Recommended Posts

I've scraped a bunch of images that I want to post individually into wordpress.

 

While scraping I saved the images to a folder in my Documents naming them 0.jpg, 1.jpg, 2.jpg etc. to keep them in the same order as some other scraped lists.

 

Then to bring them back into a list I used:

 

 

add list to list(%images,$list from text($get files("{$special folder("My Documents")}\\ImageFolder","Yes"),$new line),"Delete","Global")

 

When checking %images in the debugger, the list gets all screwed up going from:

 

0.jpg

1.jpg

11.jpg

12.jpg

13.jpg

etc.

 

So, any way to get each image path on its own line but listed incrementally?

 

I guess I could start numerating the the images at 10. That would work for my purposes, but doesn't seem correct.

 

Is this the best way to deal with a group of images?

Any thoughts on other processes is appreciated.

 

 

 

Link to post
Share on other sites

on save file use

01

02

-

-

-

10

 

if more 100 file use

001

002

-

-

-

100

101
 

add list to list(%images,$get files("{$special folder("My Documents")}\\ImageFolder","Yes"),"Delete","Global")
add list to list(%images,$sort list($get files("{$special folder("My Documents")}\\ImageFolder","Yes"),"Ascending"),"Delete","Global")
  • Like 1
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...