Apple mouse middle button script
Hello all,
How can I configure an Apple (Mighty) Mouse to run a script when a particular mouse button is pressed? Rather than running the script, it just opens the script in the Script Editor.
My script is something like this:
tell application "System Events" key code 123 using {command down} end
intended simply to browse back in Safari and Chrome when pressing the middle mouse button.
Many thanks
MBP13 2.7GHz 8GB 512SSD, Mac OS X (10.6.7)