That script from your repo works just fine for me as a script from the scrip menu.
In the macro window, you need to remove the second to last line. if __name__ == …
.
I removed it but nothing happened
Even no error in macro window
I think something weird is in my Glyph or python, other codes run fine.
If you just removed that, you’re now not calling the main function anywhere. Add a main() at the end to call it.
Already has it
What happens if you run
print("hello world")
in the Macro Panel?
I have 2 scripts just those scripts not working, It’s weird, and No error
and you need to move the main()
to the left (remove the tab before it). Or run the script from the Skript folder. (add a alias to the “NSCOLOR” folder to the Scripts folder(in Finder drag it with the Command and Option key pressed)).
1 Like