Code: Select all
put fld "fld1" into tFile1
put URL "http://domain.com/1.text" into tFile
if tFile1 is among the words of tFile then
....
Code: Select all
sometext here somemoretext somemore text is here
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put fld "fld1" into tFile1
put URL "http://domain.com/1.text" into tFile
if tFile1 is among the words of tFile then
....
Code: Select all
sometext here somemoretext somemore text is here
Code: Select all
...
put URL "http://domain.com/1.text" into tFile
if tFile contains tFile1 then
...
Code: Select all
...
set itemdel to TAB
repeat for each line tLine in tFile
if item 1 of tLine = tFile1 then
## Found it, do something
end if
end repeat
...
Code: Select all
on mouseUp
put fld "fld1" into tLine
set itemDel to TAB
put URL "http://*********.on-rev.com/testing123.txt" into tFile
--answer tFile - shows the file
repeat for each line tLine in tFile
if item 1 of tLine = tFile then
answer "Yes" else
answer "No"
end if
end repeat
end mouseUp
Code: Select all
on mouseUp
## Please look up REPEAT FOR EACH in the dictionary
######### put fld "fld1" into tLine
##!!!!!!!
put fld "fld1" into tFile1
## !!!!!!
set itemDel to TAB
put URL "http://*********.on-rev.com/testing123.txt" into tFile
repeat for each line tLine in tFile
if item 1 of tLine = tFile1 then
answer "Yes"
## Here is the time to:
exit repeat
else
answer "No"
end if
end repeat
end mouseUp