https://github.com/liangzan/frame-tag.el.git
git clone 'git://github.com/liangzan/frame-tag.el.git'
frame-tag-mode is an Emacs minor mode that allows you to switch to frames using the key bindings M-1 through M-9.
Frames are tagged in order. The top leftmost frame starts from 1. The next frame gets 2 and so on.
To switch to the leftmost frame, press M-1
Emacs 23.x and above. Not tested on older versions.
Download frame-tag.el and add this to your .emacs file
(add-to-list 'load-path "/path/to/frame-tag")
(require 'frame-tag)
(frame-tag-mode 1)
The package is added to the marmalade repositories
M-x package-install frame-tag
Copyright (c) 2012 Wong Liang Zan. GPL v3