great!
So far you only renamed your GROUPS but not the object inside of it, right?jwtea wrote: ↑Fri May 04, 2018 11:24 amBut i still can't get this to work after typing the code provided by Craig. Any idea why??Code: Select all
on mouseUp put word 2 of the short name of the target into tNumber put field "uniqueNumberField" && tNumber into field "holding field" end mouseUp
You should check "the short name of the owner of the target".
If it begins with "userbox" then extract word 2 of it and you have the number you want.
Code: Select all
on mouseUp
put the short name of the owner of the target into tGoup
if word 1 of tGroup = "userbox" then
put word 2 of tGroup into THE_DESIRED_NUMBER
## now do whatever you have to do with THE_DESIRED_NUMBER :-)
end if
end mouseUp
Best
Klaus