repeat with each machine in theSutLIST
connect machine
testStuff
disconnect
end repeat
Unfortunately, Eggplant/ST will not see each line as a property list:
Runtime Error at line 46: Connection Failed - Unable to connect to Server:(serverID:"127.0.0.1" on port:(null)
Connection failed:
Error resolving host (serverID:"127.0.0.1"
Ensure the values of a property list are quoted…
set accessList to "/tmp/fileaccess.txt"
put file accessList
also use the line option for chunking type in the repeat command
repeat with each line machine in file accessList
put value(machine) is a property list
end repeat
and finally leverage the value() command to bring in text from a file and convert it to the SenseTalk value object which the text represents. One thing to keep in mind is that text in a file is not the actual object it represents.