Script, "select same color" shows error message


#1

Hi,

I’m testing script, “select same color” by mekkablue and I got an error message. When I run this script, I got this message.
“NameError: global name ‘NSIndexSet’ is not defined”

my working environment : mac OS 10.12.6(sierra) / Glyphs 2.4.4(1075)
how can I solve it?

Thanks,


#2

I need to fix it. Just a moment please.


#3

Many thanks for your assistance!


#4

I cannot reproduce the error. Are you sure you have the latest version of the script?


#5

Yes, it is from your github.
https://github.com/mekkablue/Glyphs-Scripts/blob/master/Select/Select%20Same%20Color.py

after running this, I got it.
Traceback (most recent call last):
File “”, line 31, in
File “”, line 10, in indexSetWithIndex
NameError: global name ‘NSIndexSet’ is not defined

isn’t there any other possible way without using NSIndexSet?


#6

I have installed Xcode 9.2 and vanilla. can it cause that problem?


#7

I just uploaded an update. Please see if this fixes the problem.


#8

Yes, it works!
I really appreciate your support!