Most likely, you didn't achieve the desired result because you tried to change the settings in the trim properties instead of the operator properties. However, operators in Blender are self-contained. This means they cannot dynamically read external data, such as trim settings after starting.