• 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:IP Address
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re:IP Address


  • Subject: Re:IP Address
  • From: Devon and Cornwall <email@hidden>
  • Date: Fri, 9 Mar 2001 09:39:02 -0800

At 8:59 PM +1300 3/9/01, <email@hidden> wrote:

> BTW 'tcpip
>configuration' belongum Akua.

Oooh, we hate it when that happens. Don't normally have Akua loaded
but we were doing some testing


However, this replaces the Akua line:

--caveat: when using PPP a client application such as a browser must
--have already connected once this session
set currentIP to ""
tell application "Network Setup Scripting"
try
try
open database
on error errmsg
if errmsg contains "already open" then
close database
open database
end if
end try
begin transaction
set thisConfig to the name of first TCPIP v4 configuration whose active is true
set currentIP to IP address of TCPIP v4 configuration named thisConfig
end transaction
close database
on error errmsg number ErrNum
abort transaction
close database
end try
return currentIP
end tell

Devon and Cornwall
--Two heads are better than one.


References: 
 >Re:IP Address (From: <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: [OFF] Mac OS X font
  • Previous by thread: Re:IP Address
  • Next by thread: Re:IP Address
  • Index(es):
    • Date
    • Thread