zenorocha/alfred-workflows — pull request #11 by Lendar (2013-09-25 10:03:24+00:00)
Title: Fix IP Address issue for some network setups

Changes:

LOCAL=$(ipconfig getifaddr en0)

to:

LOCAL=$(ipconfig getifaddr en0 || ipconfig getifaddr en1)

This solves issue with iMac connected via Wi-Fi.

See other solutions in comments: http://dferg.us/ip-address-workflow/