# Python rhinoscriptsyntax error on Mac

**URL:** <https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975>\
**Category:** Scripting\
**Created:** [October 10, 2013, 3:04pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975 "2013-10-10T15:04:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [October 10, 2013, 3:04pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/1 "2013-10-10T15:04:32Z")

</div>

In running one of my scripts that runs fine on Windows, an exception was thrown on the Mac:

```python
crvs=rs.ObjectsByType(4,state=1)

```

Mac doesn’t like the state= argument, it’s not expected… If I eliminate it, it runs fine.

Thanks, --Mitch

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [October 10, 2013, 3:12pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/2 "2013-10-10T15:12:56Z")

</div>

The rhinoscriptsyntax functions on mac are pretty old and need to be updated. This is probably the cause of the problem you’re seeing Mitch. I’ve added updating the Mac plug-in to my “TODO” list.

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [October 10, 2013, 3:42pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/3 "2013-10-10T15:42:53Z")

</div>

OK, thanks Steve, I just assumed that as Mac 481 (current build) is supposed to have all the stuff from Windows Rhino V5.5, that this stuff got automatically updated…

Cheers, --Mitch

---

<div class="post-metadata">

**Author:** ![stevebaer](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stevebaer/32/473567_2.png) [@stevebaer](https://discourse.mcneel.com/u/stevebaer)\
**Post date:** [October 10, 2013, 3:53pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/4 "2013-10-10T15:53:44Z")

</div>

The python plug-in is a separate download that you installed. This was done so I could start figuring out how to implement a RhinoCommon plug-in architecture on Mac. It hasn’t been updated for a long time and really needs some love.

---

<div class="post-metadata">

**Author:** ![Helvetosaur](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/helvetosaur/32/635974_2.png) [@Helvetosaur](https://discourse.mcneel.com/u/Helvetosaur)\
**Post date:** [December 8, 2013, 12:40pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/5 "2013-12-08T12:40:17Z")

</div>

Add rs.GetBoolean() to the list of stuff that doesn’t work…

–Mitch

---

<div class="post-metadata">

**Author:** ![dromepeter](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/dromepeter/32/490894_2.png) [@dromepeter](https://discourse.mcneel.com/u/dromepeter)\
**Post date:** [May 6, 2014, 11:39pm UTC](https://discourse.mcneel.com/t/python-rhinoscriptsyntax-error-on-mac/2975/6 "2014-05-06T23:39:53Z")

</div>

Hi,

here’s another python call which is unimplemented on the Mac:  
rs.ClipboardText()

cheers  
Peter
