• 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
Re: my 1st applescript - how to get value from record?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: my 1st applescript - how to get value from record?


  • Subject: Re: my 1st applescript - how to get value from record?
  • From: Ben Dougall <email@hidden>
  • Date: Thu, 12 Oct 2006 10:55:31 +0100


On Thursday, October 12, 2006, at 01:29 am, kai wrote:
On 12 Oct 2006, at 00:19, Ben Dougall wrote:
On Thursday, October 12, 2006, at 12:16  am, Matthew Smith wrote:

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.

I'm using OS X 10.2.8. Both scripts give me 115200 -- a dial up modem.

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

s --> 8192000

----------------

---
kai


_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden


_______________________________________________ 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
References: 
 >Re: my 1st applescript - how to get value from record? (From: kai <email@hidden>)

  • Prev by Date: Re: triggering a script in Filemaker
  • Next by Date: Re: UI scripting
  • Previous by thread: Re: my 1st applescript - how to get value from record?
  • Next by thread: ISO date format on SOAP interface
  • Index(es):
    • Date
    • Thread