Blender python default function not recognized? I'm trying to apply rotation and scale to all objects, but blender apparently doesn't recognize its own functions.

I've copied this answers code and get the following error:
'Object' object has no attribute 'transform_apply'

For such a simple function there seems to be little speak of it, I suppose because no one else is having trouble with it. How do I figure out what's the problem?

import bpy

for obj in bpy.context.selected_editable_objects:
    bpy.ops.object.transform_apply(location=False, rotation=True, scale=True)
That error indicates that no objects are selected when the operator is run.

The for loop you show should prevent that, so you must have another copy of that (or another) operator call, or you are trying the one line by itself to get the error.