Can't run script in macro window

I can’t run a script that uses NSPoint in the macro window before I run my first script, how do you activate that?

You might need to do:

from Foundation import NSPoint

Speaking of Foundation:
Usually I import most of these NS-Objects from AppKit instead. And it works. Which is better to use?

NSPoint is in Foundation but the python NSPoint is something completely different and I don’t know where it actually comes from.

1 Like