get bytes sent and bytes received with Internet Connect

Hi!

do you have an idea for a script for the application “Internet Connect” wich gives me the bytes sent and the bytes received during the connection.

I tried it with this simple script:

tell application "Internet Connect"
get bytes received
-- or get bytes sent
end tell

but it gives me the error “NSCannotCreateScriptCommandError”.

Do you have a soloution?

thank you! Nick

Hmm, did you happen to look at the dictionary for Internet Connect?

If you did you’d see that the application class has a status property that returns a status record. Additionally, a status record includes information such as bytes sent and bytes received, so:


[This script was automatically tagged for color coded syntax by Convert Script to Markup Code]

sorry Camelot…

thanks a lot!

nicki