# Python command help please!

**URL:** <https://discourse.mcneel.com/t/python-command-help-please/169578>\
**Category:** Rhino for Mac\
**Tags:** python\
**Created:** [November 19, 2023, 10:44pm UTC](https://discourse.mcneel.com/t/python-command-help-please/169578 "2023-11-19T22:44:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Tom\_P](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/tom_p/32/766520_2.png) [@Tom\_P](https://discourse.mcneel.com/u/Tom_P)\
**Post date:** [November 19, 2023, 11:27pm UTC](https://discourse.mcneel.com/t/python-command-help-please/169578/2 "2023-11-19T23:27:35Z")

</div>

follow the windows instructions - rhino 8 on Mac behaves more or less like this. (EDIT: regarding toolbar / button editing)  
You can use \_macroEditor to test if the script is found / if your macro is correct:

```auto
! _-RunPythonScript "<full path to your script including extension>"

```

then copy the working macro from the macroeditor to an alias or button.

> [@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…

---

_[View the full topic](https://discourse.mcneel.com/t/python-command-help-please/169578)._
