Hello everyone,
I have a series of images (1.png, 2.png, 3.png etc etc) in a folder and I would like to run a loop that scrolls all the images themselves, I need to extract one based on specific conditions.
I do not know how to refer to the elements (the images in the folder).
I guess I have to put them in a matrix or similar, but I do not understand the way.
Thank you
Cycle that scrolls all the images of a folder
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Cycle that scrolls all the images of a folder
Hi Alessio,
not ure what you mean, maybe:
Best
Klaus
not ure what you mean, maybe:
Code: Select all
...
put "path/to_your/image_folder" into tFolder
put files(tFolder) into tFiles
## Now you have a CR delimited list of all files in that folder in -> tFiles
## Do whatever you need with this list...
## Is that what you were looking for?
...
Klaus
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Cycle that scrolls all the images of a folder
Yes, I was trying to do just that
But if I put
put defaultFolder & "/ days /" into tFolder
put files (tFolder) into tFiles
repeat for each item temp in tFiles
answer temp
end repeat
do I get a list of all files at the same time and it does not flow through every single file?
I have to select one based on the name.
But if I put
put defaultFolder & "/ days /" into tFolder
put files (tFolder) into tFiles
repeat for each item temp in tFiles
answer temp
end repeat
do I get a list of all files at the same time and it does not flow through every single file?
I have to select one based on the name.
Re: Cycle that scrolls all the images of a folder
Code: Select all
...
put defaultFolder & "/ days /" into tFolder
put files (tFolder) into tFiles
## repeat for each item temp in tFiles
repeat for each LINE temp in tFiles
answer temp
end repeat
...
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Cycle that scrolls all the images of a folder
Exatcly! Thanks Klaus