Hey,
Well, I don't see why double clicking on the handles wouldn't work. Any of them do work for me.
If they don't for some reasons, you could indeed bypass the bug with a script.
What you basically do is activating/ deactivating the autofit option on the selected textframe, using the settings your prefer. In the meantime, there is already something canon in ID for modifying the options of the selected texframe (right-click, Text frame option / CMd+B). Not sure a script is relevant here.
Anyways, the code could be then something like that :
var selectedItem = app.selection[0];
selectedItem.textFramePreferences.autoSizingType = AutoSizingTypeEnum.WIDTH_ONLY;
selectedItem.textFramePreferences.autoSizingReferencePoint = AutoSizingReferenceEnum.LEFT_CENTER_POINT;
selectedItem.textFramePreferences.autoSizingType = AutoSizingTypeEnum.OFF;
If the purpose of the script is to adjust the width of every textframe of the active document, then, a script would obviously not be an option, but pretty much mandatory if you want to really save some time. Just making a loop on all the textframes of the document will do

