<HTML><FONT FACE=arial,helvetica><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Thanks for this information about how to get the network settings.   I'm still at a loss as to how one goes about making the setting to DHCP.   I've tried all kinds of techniques from:<BR>
<BR>
</FONT><FONT COLOR="#000000" FACE="Helvetica" FAMILY="SANSSERIF" SIZE="2">"set configuration method of TCP v4 configuration 1 to DHCP"</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
to various effort to "unlock" the control-settings.<BR>
<BR>
I think this is going to take some heavy-lifting/network guru type to figure this one out.   Is there anyone else who's tried something like this before (setting the user's Networking Control panel to DHCP via Applescript)   Perhaps I could pay someone to write a routine for me, if it can be done at all.<BR>
<BR>
<BR>
In a message dated 10/1/02 6:07:20 PM, kray@sonsothunder.com writes:<BR>
<BR>
<BR>
<BLOCKQUOTE CITE STYLE="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px" TYPE="CITE"></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2">Well,<BR>
<BR>
I don't know how to set the DHCP, but here's some AppleScript code that will<BR>
*get* the configuration method using the Network Setup scripting addition...<BR>
perhaps you can use this as a start:<BR>
<BR>
----------------------<BR>
set configMethod to ""<BR>
set configName to ""<BR>
set cfg to ""<BR>
<BR>
tell application "Network Setup Scripting"<BR>
  open database<BR>
  set config to current configuration set<BR>
  repeat with i from 1 to count of configuration of config<BR>
    if (class of configuration i of config) is (TCPIP v4 configuration) then<BR>
      set cfg to configuration i of config<BR>
      set configName to name of config  -- so you can check the name to see<BR>
if it's the right one<BR>
      exit repeat<BR>
    end if<BR>
  end repeat<BR>
  set configMethod to configuration method of cfg<BR>
  close database<BR>
<BR>
  -- Now, show it in the results window<BR>
  get "Config name: " & configName & ", Method: " & configMethod<BR>
end tell<BR>
------------------------<BR>
When I ran this on my Mac, I got:<BR>
<BR>
    Config name: My Network Settings, Method: manual<BR>
<BR>
(which is all correct, BTW).<BR>
<BR>
Note that this stops as soon as it hits a TCPIP configuration method (and<BR>
you may have many defined in the TCP/IP control panel), so you may need to<BR>
check "configName" to see if it is the right one before going on. Also, keep<BR>
in mind that configurations can be locked (I don't know how to get around<BR>
that at the moment)...<BR>
<BR>
Ken Ray<BR>
Sons of Thunder Software<BR>
Email: kray@sonsothunder.com<BR>
Web Site: http://www.sonsothunder.com/<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
----- Original Message -----<BR>
From: <RGould8@aol.com><BR>
To: <use-revolution@lists.runrev.com><BR>
Sent: Tuesday, October 01, 2002 3:35 PM<BR>
Subject: Anyone know how to set to use DHCP with Revolution?<BR>
<BR>
<BR>
If I drag the Network Scripting file in Mac OS 9 to the Script Editor, I get<BR>
a whole Applescript dictionary of commands to control the user's Networking<BR>
preferences.   What I'd like to do is somehow get Revolution to talk to<BR>
Applescript to then set the user's Network control panel to use DHCP.<BR>
Perhaps there's a way to get Revolution to access this directly?<BR>
<BR>
I've found the Network Scripting dictionary to be very confusing.   Is there<BR>
a Networking guru on this list who can tell me what the secret commands are<BR>
within that dictionary to set the user's network control panel to DHCP?<BR>
Here's the vast array of commands:<BR>
<BR>
<BR>
Class TCPIP v4 configuration: A TCP/IP v4 configuration<BR>
Plural form:<BR>
     TCPIP v4 configurations<BR>
Elements:<BR>
     router address by numeric index, as a range of elements<BR>
     name server address by numeric index, as a range of elements<BR>
     search domain by numeric index, as a range of elements<BR>
Properties:<BR>
     <Inheritance>  configuration   -- See the class “configuration” for<BR>
more properties<BR>
     connecting via  Ethernet/MacIP/PPP   -- the port or connection method<BR>
of<BR>
this configuration...<BR>
     connecting via  string   -- ...or a port name   (may be locked)<BR>
     configuration method  BootP/DHCP/MacIP manual/MacIP<BR>
server/manual/RARP/PPP server   -- the configuration method of this<BR>
configuration (may be locked)<BR>
     IP address  string   -- the IP address of this configuration (may be<BR>
locked)<BR>
     subnet mask  string   -- the IP subnet mask of this configuration (may<BR>
be locked)<BR>
     implicit search start  string   -- the implicit starting search domain<BR>
of this configuration (may be locked)<BR>
     implicit search end  string   -- the implicit ending search domain of<BR>
this configuration (may be locked)<BR>
     DHCP client ID  string   -- applies only if the configuration method is<BR>
DHCP (may be locked)<BR>
     MacIP server zone  string   -- only applies if ‘connecting via’ is<BR>
MacIP (may be locked)<BR>
     uses IEEE8023  boolean   -- Does this configuration use the 802.3<BR>
protocol? (may be locked)<BR>
     protocol  TCPIP v4   [r/o]   -- the protocol of this configuration (the<BR>
constant ‘TCPIP v4’)<BR>
     administration password  string   -- the password of this configuration<BR>
(write only)<BR>
     user mode  basic/advanced/administration   -- the user mode of this<BR>
configuration<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
use-revolution mailing list<BR>
use-revolution@lists.runrev.com<BR>
http://lists.runrev.com/mailman/listinfo/use-revolution<BR>
<BR>
</BLOCKQUOTE></FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"><BR>
<BR>
</FONT><FONT COLOR="#000000" FACE="Geneva" FAMILY="SANSSERIF" SIZE="2"></FONT></HTML>