Refresh of state?

Hi Folks,


on awake from nib theObject
tell application "internet Connect"
set status_inn to state of status as string
end tell
set content of text field "status" of window "main" to status_inn

This script will output 0 - 10 as state of the internet connection!


return 1 --will Return the AS every 1 second?

Has anybody an idea on how to update the script that in the case I am connecting to the internet
the display will go from 0 to 8? (0= disconnect, 8= connect)

Thanks for your help,

Stefan