Outputting osc from a menu selection

Just wondering if this is the correct way to do this. It works, but just wondering if there's a better way.

image

Using the script property ("send" function) might be more handy.