• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: One more thing...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
On Aug 24, 2010, at 1:05pm, email@hidden wrote:

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

  • Follow-Ups:
    • Re: One more thing...
      • From: Geoff Graham <email@hidden>
References: 
 >One more thing... (From: email@hidden)

  • Prev by Date: Re: One more thing...
  • Next by Date: Scripting Mail, smart mailbox
  • Previous by thread: Re: One more thing...
  • Next by thread: Re: One more thing...
  • Index(es):
    • Date
    • Thread