I'm trying to make a simple script to help me scroll down from a hot key. The script is as follows:
tell application "System Events"
key code 125
It works great when run from the editor but once I run it from FastScripts the following happens. I hit the hotkey, the current application window loses focus (but the application stays frontmost), THEN the script is run (to no affect because there is no active window).
What am I missing here? This happens in a few of my scripts that involve keypresses on certain windows.