On Tuesday, November 26, 2002, at 02:39 AM, Monte Goulding wrote:

Do we have access to the MAC address/Physical Address?
I don't think so. On OS X try shell("ifconfig -a") and parse the result
from that. On Windows do something similar with (I think) ipconfig.

Hmm... what do you get from get shell("ifconfig -a");put it on OS X
****************************
function shellSH cmd
-- Sorry, no quote marks in cmd in this version
-- Uses sh; use full path in command
-- And shellCommand is ignored
put "do shell script" & quote & cmd & quote into s
do s as AppleScript
put result() into r
replace numToChar(13) with linefeed in r
return r
end shellSH

on mouseUp
put shellSH("/sbin/ifconfig -a") into field "Report"
end mouseUp
****************************

Tested on Rev 1.1.1: Works.

I had left out two things in saying "shell". There is no working shell in Rev 1.1.1 OS X and the workaround uses sh without your environment so you have to specify the path.

I get 0 and that's with MC 2.4.3 and 2.5A1
I would have thought that would work.

I thought we got shell access on OS X now? It works fine in Terminal.
In 2.0, I believe.

You don't know about OS 9 do you?
I just had to rebuild my OS 9 classic, so I'm not able to answer well. I have used some 3rd party network utilities in the past that were applescriptable, but I don't remember names.

Dar Scott

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to