Dropdown values set by osc

No it's not possible, the OSC{} block is parsed before the JS{} block and can't use javascript itself. I'd recommend writing a custom module to handle these messages, store the values and update the widgets accordingly. However if you really want to keep in in the session you could try creating a variable matrix to receive all these messages, with quantity set to the maximum number of possible values and props to

{
  "address": "/adm/obj/#{$ + 1}/name"
  "id": "name_#{$ + 1}"
}

then you should be able to loop over these variables with something like:

for (var i = 0; i < n_values; i++) {
  var name = get('name_' + (i + 1))
  values[name] = i
}