IR Remote Access with Applescript Studio

Hopefully a very simple question: Is there a way to catch and receive commands sent by Apple’s incuded infrared remote control with Applescript Studio? And if so, is it a difficult process to override the built-in FrontRow functionality (the “Menu” button launches FrontRow regardless of what application is currently frontmost)? Many thanks for any assistance.