ctrl+A equivalent

In the API I quickly found out how to set the Size and Rot of any Object. Now, is there any mean to apply those new Size and Rot like the ctrl+A command does ?

Jean

https://blenderartists.org/forum/viewtopic.php?t=41539

Thanks Z3r0 d

The good answer :
http://jmsoler.free.fr/didacticiel/blender/tutor/cpl_pythonresizerot.htm#Imiter_ctr_-a

I am writting a ctrl-j like one .