Change global material values/

Hi.
How would I go for changing ,for example …the specularity value of selected objects?
I can change values ATM with bpy,but it works only for one object.What i want is to make it work for all selected objects.

Any ideas?

Thanks.

for ob in bpy.context.selected_objects:
    for mat in ob.data.materials:
        mat.specular_intensity = 0.1234

Thank you CodeManX !