• 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: RA-Status work-around
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: When did Remote Access Commands get depreciated? (From: Devon and Cornwall <email@hidden>)
 >Re: When did Remote Access Commands get depreciated? (From: Bill Cheeseman <email@hidden>)
 >Re: When did Remote Access Commands get depreciated? (From: "Christopher C. Stone" <email@hidden>)
 >Re: RA-Status work-around (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Recursion script which doesn't?
  • Next by Date: Re: Archive on Goggle
  • Previous by thread: Re: RA-Status work-around
  • Next by thread: Re: When did Remote Access Commands get depreciated?
  • Index(es):
    • Date
    • Thread