![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I have a folder with images. I need to open the first 12 within a program, and after I process them, I need to open the next 12 and so on and so on. How do I get AA 6.0 Premier to loop through and grab the first 12 images... process them and then grab the next 12? I am pretty new to this, but I am a programmer and can follow the logic. I would appreciate any direction or if there is an example floating around that does this. Thanks, Brian |
| |||
|
Hello, You can try this, Start Loop " Each File in C:\Temp" Variable Operation : $Counter$ % 12 To $Prompt-Assignment$ If $Prompt-Assignment$ Equal To "0" Then //Process files End If End Loop In above code, task will loop for all files in specified folder and would calculate the set of 12 iterations by checking the reminder using $Counter$ % 12. After every 12 iteration reminder would be zero so inside If condition you can put commands to process those files. Hope that helps. |
| |||
|
I was able to get it working. That modulo thing is pretty brilliant. I figured out why it was stopping at 9... the textfield did not have enough room for 12 full pathnames... fixed this no, problem by setting the path first on the open file page and then setting just the filenames.
|
![]() |
| Thread Tools | |
| Display Modes | |
| |