Note: If you got here using a web search engine, you can find the program here.
Disclaimer: Although Network Info seems to work fine, it is distributed "as is". Use at your own risk. So there.
Network Info is an AppleScript scripting addition (OSAX) that contains three different commands: network information, AppleTalk zones, and AppleTalk entities. To use it, drop it into the Scripting Additions folder located in your Extensions folder or System folder. Please note that the file name has changed so if you have an old version (called "Network Info OSAX"), you will need to remove it by hand. Otherwise, you will get errors when trying to use the new terminology.
network information: returns a record containing various network related stuff
[opening TCP boolean] -- can open TCP [default is true]Result: list
[resolving IP name boolean] -- should resolve Mac's IP name? [default is true]
[retry interval small integer] -- retry interval in seconds [default is 3]Result: list
[retry count small integer] -- retry count [default is 4]
[object name string] -- the object name to search for [e.g., "Joe's Macintosh"]Result: list
[entity type string] -- the type of entity to search for [e.g., "LaserWriter"]
[AppleTalk zone string] -- the zone in which to search [default is local zone]
[matching network ID integer] -- only return entities matching network ID
[matching node ID integer] -- only return entities matching node ID
[matching socket integer] -- only return entities matching socket
[maximum small integer] -- the maximum number of entities to get [default is 32]
[retry interval small integer] -- the retry interval in seconds [default is 3]
[retry count small integer] -- the retry count [default is 4]
[object names only boolean] -- just return object names? [default is false]
[address details boolean] -- include address details? [default is false]
ethernet address string [r/o] -- the Mac's ethernet address
OpenTransport present boolean [r/o] -- is OpenTransport present?
OpenTransport loaded boolean [r/o] -- is OpenTransport loaded?
OpenTransport version string [r/o] -- the version of OpenTransport
AppleTalk present boolean [r/o] -- is AppleTalk present?
AppleTalk loaded boolean [r/o] -- is AppleTalk loaded?
AppleTalk version string [r/o] -- the version of AppleTalk
network ID integer [r/o] -- the network number
node ID integer [r/o] -- the node ID
router network ID integer [r/o] -- the network number of the Mac's router
router node ID integer [r/o] -- the node ID of the Mac's router
AppleTalk zone string [r/o] -- the local AppleTalk zone
TCPIP present boolean [r/o] -- is TCP/IP present?
TCPIP loaded boolean [r/o] -- is TCP/IP loaded?
TCPIP version string [r/o] -- the version of TCP/IP
IP address string [r/o] -- he Mac's IP address in dotted decimal format, e.g., 184.108.40.206
IP name string [r/o] -- the Mac's IP domain name, e.g., www.baylor.edu
computer name string [r/o] -- the computer's (Chooser) name
owner name string [r/o] -- the owner's (FileSharing) name
object name string [r/o] -- the entity's object name
entity type string [r/o] -- the entity's type
network ID integer [r/o] -- the entity's network number
node ID small integer [r/o] -- the entity's node ID
socket small integer [r/o] -- the entity's socket
set LWs to (AppleTalk entities entity type "LaserWriter" with object names only)
choose from list LW
1.0 (c. 1996)
If you have any questions, comments, (constructive) criticism, or bug reports please let me know. You can contact me at the address(es) below.
Carl Bell's Web Page
Stuff I've Written
Carl W. BellPhone:
Academic and Research Computing Services
Baylor University Electronic Library
One Bear Place #97148
Waco, TX 76798
(254) 710-4065Baylor's Fine Print:
This software, data and/or documentation contain trade secrets and confidential information which are proprietary to Baylor University. Their use or disclosure in whole or in part without the express written permission of Baylor University is prohibited.
This software, data and/or documentation are also unpublished works protected under the copyright laws of the United States of America. If these works become published, the following notice shall apply:
Copyright © 1996-1999 Baylor UniversityThe name of Baylor University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE, DATA AND/OR DOCUMENTATION ARE PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
All Rights Reserved
When permission has been granted to make copies of this software, data and/or documentation, the above notices must be retained on all copies.
Permission is hereby granted for non-commercial use and distribution of Network Info OSAX.