Hi All,
Require a method to proceed in scripting. Following is the overview of the same:
I need to iterate a set of funtions in a script file based on the inputs present in a text file. Inputs are accepted from a text file and all the funtions are present in a separate script file in the same suite.
I tried calling all the funtions inside the “repeat” loop. But the scripts are encountering an exception when the functions search for any image, saying - cannot open the image file :thedata.
My script looks something like below:
Script 1:
Start using “Script 2”
repeat with thedata = each line of file “input.txt”
function1()
statement 1.
function2()
statement 2.
end repeat
Stop using “Script 2”
Script 2:
funtion function1
if ImageFound(item 1 of thedata)
statement…
…
end if
return stmt
end function1
funtion function2
command…
statement…
…
end function2
Is it possible to script in the above way :?: If not so, please suggest any alternative to code the above :!: