I'm using rb-appscript. The following line worked fine in Lion but doesn't seem to work in Mountain Lion:
desktop_bounds = Appscript.app.by_name("Finder").desktop.window.bounds.get
I have two questions:
Just my two cent: MacRuby as a replacement is more Ruby but defintively less Appscript than rb-appscript. But it should get the job done.