Re: RA-Status work-around
Re: RA-Status work-around
- Subject: Re: RA-Status work-around
- From: Emmanuel <email@hidden>
- Date: Fri, 6 Apr 2001 01:19:08 +0200
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?
Emmanuel