Sikuli performing actions on a list of items

Asked by Elvira Graciela Córdova Núñez

 I have a list of items, and I need Sikuli to perform actions on each one of the items. Items could be, by example, files in a folder with detail view. I need that sikuli selects one file, do some actions with these file, and then select the next file and perfom another actions. How can I do that?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

--1. you need some basic Python language knowledge (faq )

--2. you need to know, how repeat something (faq )

--3. you might decide, to not do it visually
by searching/clicking on images, but use the many Python features in the modules os, os-path and others.

e.g. spoken in meta programming:

for file in all files of some_directory:
     if extension = "jpg":
           move it to some_other_directory

come back, if I got you wrong.

Revision history for this message
RaiMan (raimund-hocke) said :
#2

sorry, the mentioned faqs:

faq 1858 (Python)

faq 1437 (loops)

Can you help with this problem?

Provide an answer of your own, or ask Elvira Graciela Córdova Núñez for more information if necessary.

To post a message you must log in.