I need to get those flag icons:

enter image description here

Question is How do I do it?

As far I've tried :

  • searching the web for them (duh..),
  • extracting them from Ukelele package (only non-retina ones are there),
  • (Unsuccessfully) trying to extract it from this file: /System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat

Either pointing me to this resource or any hint on how to "open" this .dat file will be really helpful. Thanks!

  • Are you using a Mac or an iOS a device?
    – Daniel
    Oct 1, 2014 at 0:28
  • Macbook Pro Retina on Yosemite (not sure if that's relevant).
    – meeDamian
    Oct 1, 2014 at 0:51

1 Answer 1


You can use apple-kbd-dat-icon-extract.py from https://github.com/phible/scripts:

curl https://raw.githubusercontent.com/phible/scripts/master/apple-kbd-dat-icon-extract.py -o a.py;mkdir icons;python a.py -o icons

  • That's exactly what I was looking for! Live long and prosper, my friend :).
    – meeDamian
    Oct 2, 2014 at 13:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .