run sikuli from terminal on MAC

Asked by daniel

im able to run sikuli IDE GUI perfectly on my MAC and run my tests.

i need to do it from the command line by Mac Terminal application.
(i mainly want to do it becuse then i can run it as many time as i want , in loop)

can you specify what do i need to do, im using sikuli-r930-osx-10.6.dmg pkg

Thanks
Daniel

Question information

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

@Anton
Sorry, but Mac is very welcome here (BTW: it is the primary development system for Sikuli ;-)

@Daniel
look and try: http://doc.sikuli.org/faq/010-command-line.html

come back if you need more help.

--- (i mainly want to do it becuse then i can run it as many time as i want , in loop)
Loops are possible in Sikuli scripts, since we are talkin Python: see faq 933

Revision history for this message
daniel (danmac608) said :
#5

Thanks ,

can you check for MAC when im running

/Applications/Sikuli-IDE.app/sikuli-ide.sh -r myScriptFromIde.sikuli or
/Applications/Sikuli-IDE.app/sikuli-ide.sh -t myScriptFromIde.sikuli

i get the error
[error] /Applications/Sikuli.alljoin.sikuli/Sikuli.alljoin.py (No such file or directory)

Am i running it wronggly

Thanks dude
Daniel

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

the script to run with this command has to be given with a full path specification.

For example if you have your scripts in a folder myscripts in your home directory:

/Applications/Sikuli-IDE.app/sikuli-ide.sh -r ~/myscripts/myScriptFromIde.sikuli

BTW: i do not recommend to create IDE Unit Test scripts, that have to be run from commandline using option -t: see faq 1804

one more thing:
Script names should not contain the string "sikuli/Sikuli" and should only consist of ascii characters/numbers, underscore and hyphen (in the moment ;-)

Revision history for this message
daniel (danmac608) said :
#7

WOW

it is working great,

Thanks a lot
Daniel