iPhoto script won't work

Okay, am I missing something, or why doesn’t this work:

tell application “iPhoto”
(** this doesn’t work **)
set photoList to (every photo where width * height ≤ 490000)

(** all of the following do work: **)
-- set photoList to (every photo where width < 700)
-- set photoList to (every photo where height < 700)
-- set photoList to (every photo where width < 700 and height < 700)

end tell

So is there some restriction on the ‘where’ clause that I’m missing?

=thomas

Okay, a simpler version:

tell application “iPhoto”
set photoList to photos where ((20*10)<300)
end tell

For what it’s worth, the error is: NSCannotCreateScriptCommandError .

=thomas

Use “whose”, not “where”:

tell application "iPhoto"
	set photo_list to photos whose height < 700 and width < 700
end tell

Jon