Getting feedback from a slider

Hi, again, folks. Here’s the situation: I’m trying to get constant feedback when a slider is used in an Applescript Studio app.

Specifically, I want the contents of a text box to change to reflect the value of the current (and changing) value of the slider.

I’m using an ‘on action’ handler’ to tell the app what to do in this situation, but every time I try to do something with the value of “speedSlider,” I get an error in the running (built) app. (error is something along the lines of “Cannot Create Command” or something like that).

Any help would be greatly appreciated.

Thanks,

Laz

No scripting necessary. In IB, option-click and hold on the slider and then drag the connection line to the text box. Then, from the “Connections” pane of the Get Info window, double-click “takeStringValueFrom:” until there is a bullet to the left of that connection. Now test your interface, adjusting the slider should add the value of the slider to the contents of the text box. If you start the value of the slider at 1, you should enter 1 as the default text of the box so that it always displays something even on waking from the nib before the slider has been moved. If you make an opposite connection (text box to slider) but change it to “takeFloatValueFrom:” you can make it so that editing the value in the text box adjusts the slider.

Jon

Wow, Jon…thanks, very much! …I guess there’s a lot that I need to learn about connections! The feedback is, indeed, now in the text box.

I need to go further, however, in that I need to set a variable along with the changed value. I’ll jump in and see what I can come up with.

Thanks very much for your help.

Laz