Re: One more thing...
Re: One more thing...
- Subject: Re: One more thing...
- From: Geoff Graham <email@hidden>
- Date: Wed, 25 Aug 2010 09:40:45 -0400
If you're going to go the brute force route, you might as well go in all the way:
repeat with i from 0 to 6
set ifstring to "ipconfig getifaddr en" & i
try
set ipAddress to do shell script ifstring
return the result
end try
end repeat
geoff
On Aug 24, 2010, at 5:36 PM, email@hidden wrote:
> 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
>
_______________________________________________
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