my 1st applescript - how to get value from record?
my 1st applescript - how to get value from record?
- Subject: my 1st applescript - how to get value from record?
- From: Ben Dougall <email@hidden>
- Date: Thu, 12 Oct 2006 00:08:17 +0100
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
i want to get the integer value of speed into s from:
Class status record: The Internet Connect status information
Properties:
user name plain text [r/o] -- the user name
server name plain text [r/o] -- the name of the system at the other
end of this connection
speed integer [r/o] -- the transmission rate established for this
connection, in baud
seconds connected integer [r/o] -- the time connected, in seconds
seconds remaining integer [r/o] -- the time left for this
connection, in seconds; A value of -1 represents unlimited time
remaining.
bytes received integer [r/o] -- the number of bytes received during
this connection
bytes sent integer [r/o] -- the number of bytes sent during this
connection
protocol integer [r/o] -- the protocol negotiated for this
connection
message plain text [r/o] -- the most recent message displayed to
the user for this connection
state integer [r/o] -- the state of this connection
but i can't. :(
how are you supposed to get a value from a record by the name of the
value?
thanks, Ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden