IP addresses
Last modification: Monday, August 25, 2008 12:47 amReturns a list of the IP addressed associated with the interfaces en0 and en1.
Function Call
ipAddresses()Implementation
on ipAddresses()set _ipAddresses to {}
try
set end of _ipAddresses to do shell script "ipconfig getifaddr en0"
on error
try
set end of _ipAddresses to do shell script "ipconfig getifaddr en1"
end try
end try
return _ipAddresses
end ipAddresses