( rollout rename_rollout "Enter Selected Object Name" ( edittext base_name "" button search_button "Select Object" on search_button pressed do ( local search_name = base_name.text if search_name != "" do ( for obj in objects do ( if findString obj.name search_name != 0 do format "Object name '%s' found!\n" obj.name ) ) ) ) createDialog rename_rollout 250 50 )