Re: One more thing...
Re: One more thing...
- Subject: Re: One more thing...
- From: "Mark J. Reed" <email@hidden>
- Date: Wed, 25 Aug 2010 11:00:42 -0400
See my script. Not all interfaces are named "en". :)
On Wed, Aug 25, 2010 at 9:40 AM, Geoff Graham <email@hidden> wrote:
> 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
>
--
Mark J. Reed <email@hidden>
_______________________________________________
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