I need help with this script:
If the text that I type in to the text box does not match Student Server Disks, Colin, Jacks Laptop or Kaitlins Laptop, I want it say There was a problem connecting the the server "what-ever-i-typed-in".
PLEASE HELP I NEED HELP!!!
THANKS IN ADVANCE
Code:
set a to display dialog "What server would you like to connect to?" default answer "Student Server Disks" with title "Connect to Server"
if text returned of a is "Student Server Disks" then
try
mount volume "afp://Student:student@server.school.school.nz/"
end try
end if
if text returned of a is "Colin" then
try
mount volume "smb://Colin/Owner/"
end try
end if
if text returned of a is "Jacks Laptop" then
try
mount volume "smb://Jack-pc/Reynolds/"
end try
end if
if text returned of a is "Kaitlins Laptop" then
try
mount volume "smb://Kaitlin-pc/Kaitlin/"
end try
end if
If the text that I type in to the text box does not match Student Server Disks, Colin, Jacks Laptop or Kaitlins Laptop, I want it say There was a problem connecting the the server "what-ever-i-typed-in".
PLEASE HELP I NEED HELP!!!
THANKS IN ADVANCE