Re: RA-Status work-around
Re: RA-Status work-around
- Subject: Re: RA-Status work-around
- From: "Christopher C. Stone" <email@hidden>
- Date: Fri, 6 Apr 2001 18:34:27 -0500
At 04/06/2001 01:19 +0200, Emmanuel wrought:
>
At 7:50 +0200 5/04/01, Christopher C. Stone wrote:
>
>
>---------------------------------------------------------------------------
>
> with timeout of 2 seconds
>
> tell application "Network Setup Scripting"
>
> try
>
> open database
>
> set ipAddress to IP address of (first TCPIP v4 configuration
>
>whose active is true)
>
> end try
>
> close database
>
> end tell
>
> end timeout
>
>
>
> if ipAddress is not "0.0.0.0" then
>
> set ipOnFlag to true
>
> end if
>
>---------------------------------------------------------------------------
>
>
Is that the code you really use? If the "set ipAdd" fails, I suppose the
>
"if" will error, too?
Nope. I just wrote it to give the general idea. For my own use I'd actually have error checking. ;)
--
Best Regards,
Christopher Stone
______________________________
StoneWorks Computer Consulting
email@hidden