If you are determined to solve the problem through a Keyboard Maestro macro because you want the cognitive exercise of doing so, then follow @JMichaelTX's advice.
If you want to make a single image from a set of tiles relatively quickly, I suggest installing the ImageMagick set of tools and running the montage
command from the Terminal.
I am assuming that you have each tile as its own file. If that's the case, and all 16,129 files are in the same folder, you could generate the map in one step with a Terminal command like this:
montage *.jpg -geometry +0+0 -tile 127x127 map.jpg
There are caveats to this:
- You have to be willing to install command-line software and run it from the Terminal.
- As I said, you have to have all the tiles as individual files. (I'm assuming they're JPEGs, but PNGs or GIFs would work, too.)
- The individual tile files have to be named in a way that reflects the order they will take in the map. If they aren't, the folks here could help you get them renamed.
Having done my share of user simulation scripting in both Keyboard Maestro and AppleScript, I think your chances of success are better with montage
.