Reset Slider

Hi Folks,

does anyone has a clue on how to reset a slider?

The Goal for this is:

with takeStringValueFrom I am putting the value from the slider to a text field - when I am clicking on a button,
the slider should be reseted to the default value…

Thanks for your feedback,

Stefan Lehrner

something like this?

property defaultValue : "1"

tell slider "mySlider" of window "main"
	set newValue to its contents
	set its contents to defaultValue
end

Hi Stefan,

thanks Stefan - that works perfekt…

Best Regards,

Stefan