Thanks for your reply. Obviously this is more complicated than I thought, so apologies if I've been unclear.
I place an object, and I manually position it at the height I want it to be at (y). I want an action/script that can then move it on to the 2500px position on the x, without affecting its height on the y.
I understand your point about positioning relative to a x,y pixel, but this would affect the level of the object on the y which I don't want to do.
I found a script which looks like it may do what I want at the post below:
Actions/Scripts: Move layer to absolute position instead of translate (Post #2; lines 36-67)
Is this the kind of script you mean?
You do not seem to understand how align layer to section works.
You state the vertical position is correct you have done that. however the horizontal positions is off.
You know some pixel you want the horizontal center of the layer align to.
You select that pixel with the rectangle selection tool set to 1px and set the xy of the pixel to make a section of that pixel
You use menu leyer, align the layers selection, horizontal center.