Using Applescript 'Array'

I’ve got this AppleScript ‘Array’;

 {"200.25.201.100", "80"}

Using this split function;

on theSplit(theString, theDelimiter)
	-- save delimiters to restore old settings
	set oldDelimiters to AppleScript's text item delimiters
	-- set delimiters to delimiter to be used
	set AppleScript's text item delimiters to theDelimiter
	-- create the array
	set theArray to every text item of theString
	-- restore the old setting
	set AppleScript's text item delimiters to oldDelimiters
	-- return the result
	return theArray
end theSplit

My question is how do I get word 1 and 2 of that ‘Array’ into variables. This is what I’ve tried;

	set proxyIP to word 1 of proxy as string
	set proxyPort to word 2 of proxy

But no luck. Any ideas?

Those are actually list items, not words. Here’s a way to variabilize them:

set {proxyIP, proxyPort} to {"200.25.201.100", "80"}'s {item 1, item 2}

In fact, AppleScript allows you simply to set the list of variables to the list of items:

set {proxyIP, proxyPort} to {"200.25.201.100", "80"}

Or:

set myList to {"200.25.201.100", "80"}
set {proxyIP, proxyPort} to myList