//Hello! This script runs through the entire active document and removes the text wrap from every object. That means EVERY OBJECT, unless it's on a master page or is locked, so don't do this unless that's what you want. It *shouldn't* affect master pages though.
//Useful for: Getting rid of text wrap on old documents.

doc = app.activeDocument;
spreads = doc.spreads;
count = spreads.count();

for (i = 0; i < count; i++){
	app.activeWindow.activeSpread = spreads[i];
	pItems = app.windows[0].activeSpread.pageItems;
	app.select (pItems, SelectionOptions.ADD_TO);  
	var selection = app.selection;
	for (n = 0; n < selection.length; n++){
		var selectedObject = selection[n];	
		var wrapPrefs = selectedObject.textWrapPreferences;
		wrapPrefs.textWrapMode = TextWrapModes.NONE;
	}
}