From http://stackoverflow.com/questions/16696006/google-apps-script-spreadsheet-range-processing-get-process-set-set-not-workin