setting multiple value for a variable in subroutine

Ok, it’s been a while since I worked in AS so I’m very rusty.

I’ve made and automator workflow which take the file path and run an apple script to change part of the path to something that will work with iChat.

here’s the Applescript part:

on run {input, parameters}

set the message_text to input as string
set the message_text to replace_chars(message_text, "afp://XXX.XXX.XXX.XXX", "file:///Volumes")
set the clipboard to message_text
return input

end run
on replace_chars(this_text, search_string, replacement_string)
set AppleScript’s text item delimiters to the search_string
set the item_list to every text item of this_text
set AppleScript’s text item delimiters to the replacement_string
set this_text to the item_list as string
set AppleScript’s text item delimiters to “”
return this_text
end replace_chars

I have removed the actual IP for security reason:-)

I’d like to be able to search for the smb://XXX.XXX.XXX.XXX and afp://name.of.server plus the one that’s already there. so how do I do this? I’ve tried to set a variable like this:

set myservers to “afp://XXX.XXX.XXX.XXX” or “afp://name.of.server”

and then call it in the subroutine, but that gives an error. How should I go about this?

Or if you have a better way to do this, even better!

Jeff