Dear Nicolas,

>On one card I have 20 buttons whose script is the same but which I now want
>to change, preferably with some sort of repeat loop rather than manually
>button by button, e.g.,:

Easy to do. Change the script of cd btn 1 to what you want, then:

repeat with zz=2 to 20
  set the script of cd btn zz to the script of cd btn 1
end repeat

>In hindsight, I should've scripted some sort of subroutine.

Then take care of it now.  Make the script of cd btn 1:

On mouseup
  ShakeRattleAndRoll
end mouseup

set cd btn scripts as above and stick the ShakeRattleAndRoll handler 
somewhere in the message path of the cd btns. 

Nelson Zink

Reply via email to