• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
my 1st applescript - how to get value from record?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: my 1st applescript - how to get value from record?
      • From: Matthew Smith <email@hidden>
References: 
 >[ann] Ruby appscript 0.1.1 released (From: has <email@hidden>)

  • Prev by Date: Re: Human Readable Time snipit
  • Next by Date: Re: my 1st applescript - how to get value from record?
  • Previous by thread: Re: [ann] Ruby appscript 0.1.1 released
  • Next by thread: Re: my 1st applescript - how to get value from record?
  • Index(es):
    • Date
    • Thread