Could not convert XXXX into curve geometry. Difference between mac and PC

The script works on Rhino Mac V6 but not on windows V6.