Re: One more thing...
Re: One more thing...
- Subject: Re: One more thing...
- From: email@hidden
- Date: Tue, 24 Aug 2010 14:36:49 -0700
Nice script.
You may try this:
try set ipAddress to do shell script "ipconfig getifaddr en1" on error set ipAddress to do shell script "ipconfig getifaddr en0" end try
HTH,
ES Several months ago with the help of several
posts here I developed this little script that gives general information
about a Mac to aid a remote help support person. I have run into a little
snag with some recent field testing and that is the script is looking specifically
at en0 if you are using en1 you get the error: get if addr en0 failed (os/kern)
failure.
What is the best way to check both ports
or 0 and then 1 if there is no cable in 0 or all possible cards and then
just reporting back what it finds? Thanks for all your help once again!
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden