Marc,<br><br>Thanks a lot for that.&nbsp; it think combining&nbsp; several &quot;signatures&quot; of the hardware could work fine. Certainly the machine serial number is one. Thanks again<br><br>&nbsp;&nbsp;&nbsp; Javier<br><br><div class="gmail_quote">
On Wed, Apr 23, 2008 at 8:35 PM, Marc Nijdam &lt;<a href="mailto:marc_nijdam@mac.com">marc_nijdam@mac.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
if you&#39;re willing to write a plugin here&#39;s a native snippet of C/ObjC you can use to get the serial number.<br>
<br>
 &nbsp; &nbsp;io_service_t platformExpert = IOServiceGetMatchingService(<br>
 &nbsp; &nbsp; &nbsp; &nbsp;kIOMasterPortDefault,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;IOServiceMatching(&quot;IOPlatformExpertDevice&quot;));<br>
<br>
 &nbsp; &nbsp;if (platformExpert) {<br>
 &nbsp; &nbsp; &nbsp; &nbsp;CFTypeRef serialNumberAsCFString =<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IORegistryEntryCreateCFProperty(platformExpert,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;CFSTR(kIOPlatformSerialNumberKey),<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;kCFAllocatorDefault, 0);<br>
 &nbsp; &nbsp; &nbsp; &nbsp;IOObjectRelease(platformExpert);<br>
 &nbsp; &nbsp;}<br>
<br>
hth,<br><font color="#888888">
<br>
--Marc</font><div><div></div><div class="Wj3C7c"><br>
<br>
On Apr 23, 2008, at 11:28 AM, tim Rowledge wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
On 23-Apr-08, at 10:35 AM, Norbert Hartl wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Wed, 2008-04-23 at 15:00 +0200, Javier Reyes wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Edgar,<br>
<br>
It&#39;s for a licensing server. I think I&#39;ve found a way to do it using<br>
the ethernet physical ID trough:<br>
<br>
Applescript doIt: &#39;do shell script &quot;ifconfig en0&quot;&#39;.<br>
<br>
And then filtering the physical address.<br>
<br>
</blockquote>
This won&#39;t work. Usually the MAC address shown is only a copy<br>
of the number stored on the device. You can alter this address<br>
easily.<br>
</blockquote>
I assume simply replacing the ethernet card - or even just adding one and reassigning which is en0 - would mess it up pretty badly.<br>
<br>
Many CPus have an actual unique ID that is findable somewhere. Even there you&#39;re in trouble if the cpu has to be replaced due to failure of upgrade.<br>
<br>
<br>
tim<br>
--<br>
tim Rowledge; <a href="mailto:tim@rowledge.org" target="_blank">tim@rowledge.org</a>; <a href="http://www.rowledge.org/tim" target="_blank">http://www.rowledge.org/tim</a><br>
The next generation of computers will have a &quot;Warranty Expired&quot; interrupt.<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>