You don't have to set the ruler option for the application -- in fact, that will do quite the opposite, as it will set it as default for new documents but not change the current one! Setting it for your current document is enough.
Try setting theDocument.zeroPoint to [0,0] after changing the origin.
app.viewPreferences.rulerOrigin = RulerOrigin.SPINE_ORIGIN; app.activeDocument.viewPreferences.rulerOrigin = RulerOrigin.SPINE_ORIGIN; app.activeDocument.zeroPoint = [0,0];
Thank you very much!
zeroPoint=[0,0] is what i needed