set serverList to {"alice", "bob", "charlie", "don", "ellen"}
set userPassList to {"alice:pass", "bob:pass", "charlie:pass", "don:pass", "ellen:pass"}
set cmdResult to ""
repeat with i from 1 to 5
set theCmd to "mkdir /Volumes/Data" & i
log theCmd
set cmdResult to do shell script theCmd
if cmdResult ≠ "" then
display dialog "There appears to have been an error. mkdir says:" & return & return & cmdResult buttons "Cancel" default button 1
end if
set theCmd to "mount_afp afp://" & item i of userPassList & "@" & item i of serverList & ".local/Data /Volumes/Data" & i
log theCmd
set cmdResult to do shell script theCmd
--Not sure how to error check this one. It always returns some gibberish...
end repeat