Re: Select Group
Posted: Fri May 04, 2018 11:32 am
Hi jwtea,
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.
Hope I understood you correctly!
Best
Klaus
great!jwtea wrote: Fri May 04, 2018 11:24 amHello Klaus , thanks for your help! Now my group got each and special unique name.
So far you only renamed your GROUPS but not the object inside of it, right?jwtea wrote: Fri May 04, 2018 11:24 am But 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 mouseUpBest
Klaus