You could be able to do this with something like this:
' Set sprite1 origin to sprite2 imagepoint
Set sprite1 position to sprite2.imagepoint(1).x, sprite2.imagepoint(1).y
' Move sprite1 so that instead of origin we get the imagepoint at the spot we want
Set sprite1.x to distance(sprite1.x, 0, sprite1.imagepoint(1).x, 0)
Set sprite1.y to distance(sprite1.y, 0, sprite1.imagepoint(1).y, 0)
Something like that, formulas might be wrong (and can be simplified) as I did not test it but the idea should work.