Select layer(Set)s and use this code:
function sTT(v) {return stringIDToTypeID(v)}
function mve() {
(ref1 = new ActionReference()).putEnumerated
(sTT('layer'), sTT('ordinal'), sTT('targetEnum'));
(dsc1 = new ActionDescriptor()).putReference(sTT('null'), ref1);
dsc2 = new ActionDescriptor(); (function(v) {
for(i = 0; i < (arr = ['horizontal', 'vertical']).length; i++) {
dsc2.putUnitDouble(sTT(arr), sTT('pixelsUnit'), v)
}
})(arguments)
dsc1.putObject(sTT('to'), sTT('offset'), dsc2)
executeAction(sTT('move'), dsc1)
}
mve(100, 100)