Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
User Journal

Journal seann's Journal: asdf

get text
set AppleScript's text item delimiters to {"."}
try
        set ip_ADDRESS to "192.168.0.1" as string
        set OCT_1 to text item 1 of ip_ADDRESS as integer
        set OCT_2 to text item 2 of ip_ADDRESS as integer
        set OCT_3 to text item 3 of ip_ADDRESS as integer
        set OCT_4 to text item 4 of ip_ADDRESS as integer
end try

set AppleScript's text item delimiters to {""}

display dialog {"Computer 1's Address: ", OCT_1, ".", OCT_2, ".", OCT_3, ".", OCT_4 + 0} as string
display dialog {"Computer 2's Address: ", OCT_1, ".", OCT_2, ".", OCT_3, ".", OCT_4 + 1} as string
display dialog {"Computer 3's Address: ", OCT_1, ".", OCT_2, ".", OCT_3, ".", OCT_4 + 2} as string
display dialog {"Computer 4's Address: ", OCT_1, ".", OCT_2, ".", OCT_3, ".", OCT_4 + 3} as string

"The one charm of marriage is that it makes a life of deception a neccessity." - Oscar Wilde

Working...