On Thursday, October 12, 2006, at 12:16 am, Matthew Smith wrote:
On 12/10/2006 09:08, "Ben Dougall" <email@hidden> wrote:
tell application "Internet Connect"
get connect
end tell
set L to the result
set s to speed of L <<<<< how to do this line so it works?
display dialog s
Applescript doesn't know what speed of L is. It has no context.
You need to
wrap it in a tell block for Internet Connect.
tell application "Internet Connect"
set L to (get connect)
set s to speed of L
end tell
display dialog s
thank you.
Ben.
Clearly that works for you guys, so things must have changed
significantly in the current version of Internet Connect. At the
moment, I have to resort to something slightly more complicated. To
get a meaningful speed reading while the connection is made, I also
need to include a brief pause:
----------------
tell application "Internet Connect" (* 1.4.2 *)
connect
set s to speed of current configuration's status
repeat while s is 0
delay 0.2
set s to speed of current configuration's status
end repeat
end tell