if i have a group of buttons in a group A-H and the group is called "myButtons" and another button outside the group and i put into each button of grp "myButtons"
Code: Select all
on mouseUp
answer the short name of me
set the backgroundColor of me to red
end mouseUp
i currently have in the outside button this
Code: Select all
on mouseUp
send "mouseUp" to any button of grp "myButtons"
end mouseUp
but i want it to be something more like
Code: Select all
on mouseUp
send "mouseUp" to any button of grp "myButtons" where backgroundColor of it <> red
end mouseUp
would there be a correct way to word this? naturally this doesnt work
if i use something like this i would get caught in an endless loop when all are red
Code: Select all
on mouseUp
put the short name of any button of grp "myButtons" into theName
if the backgroundColor of btn theName of grp "myButtons" <> red then
send "mouseUp" to btn theName of grp "myButtons" in 0
else
send "mouseUp" to me in 0
end if
end mouseUp