monitor dimensions

Is there any way to get the monitors dimensions in pixels?
I was hoping ‘image events’ would return this but it does not.

Any help would be greatly appreciated, (‘:oops:’)

John

http://macscripter.net/faq/comments.php?id=167_0_5_0_C

Thank you for your fast reply!
Because I prefer not to have any osaxen I have chosen for the second solution:

{word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Width") as number, ¬
    word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w Height") as number}

However, this returns the wrong resolution:
1024 x 768 instead of 1920 X 1200

Is there any way I can fix this?

I am almost there. Thanks

John

You can try this alternative:

tell application "System Events"
	tell process "Finder"
		repeat with i from 1 to the count of windows
			if the position of window i is {0, 0} then
				return the size of window i
			end if
		end repeat
	end tell
end tell