Anchored Frames In InDesign using Apple Script

Hi All,

I need to release all anchored frames in my document so that anchored frames becomes normal text frames using Apple Script.
Manually We do this by selecting the anchored text frame and using menu Object → Anchored objects → Release. I have searched for it but i couldn find anything for this. Can anyone tell me how to do this thru apple script so that i can proceed further.

-jacintha