AppleScript problem under Mac OS Tiger

Hello All,

I have a script which makes the “Load Images” button clicked on Junk mail message viewer window for Apple Mail application:

tell application "Mail"
end tell
tell application "System Events"
	tell process "Mail"
		click button "Load Images" of window "Message Subject - Message Folder"
	end tell
end tell

It works fine under Leopard (10.5.4) but doesn’t work under Tiger. I’ve got an error:
NSAppleScriptErrorBriefMessage = “NSReceiverEvaluationScriptError: 4”;
NSAppleScriptErrorMessage = “System Events got an error: NSReceiverEvaluationScriptError: 4”;
NSAppleScriptErrorNumber = 1;
NSAppleScriptErrorRange = <61000000 7a000000 >;

Could you help me please? What’s wrong with script?

Thank you.

Best regards,

Problem is solved.

You just need to go to the System Preferences->Universal Access and check the Enable Access For Assistive Devices.

That’s all.

Thank you.