try this post by @Helvetosaur
Once you create the button, use this as a macro ! _-RunPythonScript Scriptname
I believe the scripts have to reside in the correct Rhino folder. See this post also.
I do keep all my scripts in Dropbox like this post says. I also just run my scripts from Atom
«Randy
2 Likes