# Command button with Python and Rhino for Mac

**URL:** <https://discourse.mcneel.com/t/command-button-with-python-and-rhino-for-mac/99148>\
**Category:** Rhino for Mac\
**Tags:** python\
**Created:** [March 30, 2020, 10:26pm UTC](https://discourse.mcneel.com/t/command-button-with-python-and-rhino-for-mac/99148 "2020-03-30T22:26:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pascal](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/pascal/32/479395_2.png) [@pascal](https://discourse.mcneel.com/u/pascal)\
**Post date:** [May 20, 2020, 3:45pm UTC](https://discourse.mcneel.com/t/command-button-with-python-and-rhino-for-mac/99148/2 "2020-05-20T15:45:04Z")

</div>

Hello - see

> [@Running Python scripts from aliases or toolbar buttons](https://discourse.mcneel.com/t/running-python-scripts-from-aliases-or-toolbar-buttons/47290):
>
> First, [here is some basic info from the Rhino developer docs.](http://developer.rhino3d.com/guides/rhinopython/python-running-scripts/) Following are some more detailed instructions. They are platform-specific. For Windows Rhino users: To run a python script (\*.py) from a toolbar button: Right-click in a blank space in any toolbar and choose “New Button”. In the button editor that opens, in the "Command area, type the following: ! \_-RunPythonScript ( \<paste the entire script here\> ) Then OK to exit the button editor. When you click the button, the script sh…

-Pascal

---

_[View the full topic](https://discourse.mcneel.com/t/command-button-with-python-and-rhino-for-mac/99148)._
