<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>(Cross-posted to MC list)</DIV>
<DIV> </DIV>
<DIV>
<DIV>Hey, everyone: Here is what I ended up doing that not only retrieves the 
MAC Address, but also solves a reported problem of being unable to quit Apple 
System Profiler:</DIV>
<DIV> </DIV>
<DIV>In order to get the MAC Address from Apple System Profiler, you first need 
to know that ASP refers to this as the "AppleTalk Address", and that it returns 
the address in AppleScript's list format (ex: {"00.0a.27.d6.9d.06"}). Secondly, 
you need to know where ASP *is*, otherwise you'll get the dreaded "Please locate 
Apple System Profiler:" dialog box. I discovered that if you can let MC locate 
it (through whatever means you need - directories(), files(), etc.), you need to 
make sure that the default directory is set to the location of ASP, otherwise 
you'll get the "Please locate:" box. </DIV>
<DIV> </DIV>
<DIV>On my Mac (and I believe most modern OS8-9 Macs), ASP is located in the 
Apple Menu Items folder. So here's the script (assuming MC has found it in the 
Apple Menu Items folder):</DIV>
<DIV> </DIV>
<DIV>function GetMACAddress<BR>  local tResult<BR>  set the directory 
to specialFolderPath("apple")<BR>  put "tell application" && quote 
& "Apple System Profiler" & quote & cr & \</DIV>
<DIV>    "get appletalk address" & cr & "end tell" into 
getMACScript<BR>  put "tell application" && quote & "Apple 
System Profiler" & quote & cr & \</DIV>
<DIV>    "close window" && quote & "Apple System 
Profiler" & quote & cr & "end tell" into quitASPScript<BR>  
<BR>  set the directory to specialFolderPath("apple")<BR>  do 
getMACScript as AppleScript<BR>  put the result into retVal<BR>  do 
quitASPScript as AppleScript<BR>  replace "{" with "" in retVal<BR>  
replace "}" with "" in retVal<BR>  replace quote with "" in 
retVal<BR>  return retVal<BR>end GetMACAddress</DIV>
<DIV> </DIV>
<DIV>Note that although you can't send "quit" to ASP, you CAN say "close window 
'Apple System Profiler'" and it does the same thing!</DIV>
<DIV> </DIV>
<DIV>Enjoy!</DIV>
<DIV> </DIV>
<DIV>Ken Ray<BR>Sons of Thunder Software<BR>Email: <A 
href="mailto:kray@sonsothunder.com">kray@sonsothunder.com</A><BR>Web Site: <A 
href="http://www.sonsothunder.com/">http://www.sonsothunder.com/</A></DIV></DIV></BODY></HTML>