Would like to avoid native API when possible, but this seems like a gaping hole in the JS API (aka the script equivalent of cmd-K "Scale Layers")