Yes, sorry, I might have posted this in the wrong place:
I just spotted this in my Google Reader: Finding Large Attachments and Emails in Google Mail/Gmail
You don't really need the script.
I didn't know enough about Gmail search to realise that it could be that simple.
I read a statement somewhere that the "size:" search term was "an undocumented feature" in Gmail search. However, when I looked in the Help notes I saw that it is
included (I don't recall having seen it or
the date search terms before though). The Help has recently been updated, so maybe it was undocumented previously.
In any event, it always seemed rather strange to me that Gmail search didn't
have these kinds of search terms, seeing as Google would probably tout itself as the de facto
King of Search.