Skip to content

Instantly share code, notes, and snippets.

@oskarhagberg
Created December 5, 2009 07:33
Show Gist options
  • Select an option

  • Save oskarhagberg/249607 to your computer and use it in GitHub Desktop.

Select an option

Save oskarhagberg/249607 to your computer and use it in GitHub Desktop.
AppleScript that shows current external IP as large text (from LaunchBar)
set theIP to do shell script "curl -sf http://checkip.dyndns.org/|cut -d ':' -f 2|cut -d '<' -f1|sed -e 's/ //g'"
tell application "LaunchBar"
display in large type theIP with title "External IP Address:"
end tell
return theIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment