This is the script:
Code: Select all
open file "d:\Livecode\thumbnails"
read from file ("d:\Livecode\thumbnails\") until EOF
if "foo.jpg" is in it then
answer "eureka"
end if
What is the right script

Thanks, Rob
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
open file "d:\Livecode\thumbnails"
read from file ("d:\Livecode\thumbnails\") until EOF
if "foo.jpg" is in it then
answer "eureka"
end if
Code: Select all
put "foo" into tVar
if there is a file "D:/Livecode/thumbnails/"&tVar&".jpg" then
answer "eureka"
else
answer "nope"
end if
Code: Select all
open file "d:\Livecode\thumbnails"
read from file ("d:\Livecode\thumbnails\") until EOF
if "foo.jpg" is in it then
answer "eureka"
end if
Code: Select all
put "foo" into tVar
if there is a file ("D:/Livecode/thumbnails/" &t Var & ".jpg") then
answer "eureka"
else
answer "nope"
end if
Code: Select all
if there is a file "D:/Livecode/thumbnails/" &t Var&".jpg" then
Code: Select all
if there is a file "D:/Livecode/thumbnails/" then