1

I don't see any APIs to enumarate desktops or move drawing to a specific desktop.

Piglet
  • 27,501
  • 3
  • 20
  • 43
Vitaly Kushner
  • 9,247
  • 8
  • 33
  • 41
  • What do you mean draw on a specific desktop exactly? – Etan Reisner Jun 01 '16 at 14:25
  • I mean, I have 6 desktops, and I want to draw on a specific one, and not on the current one. specifically I want to draw some different text on each desktop – Vitaly Kushner Jun 01 '16 at 14:34
  • Using `hs.drawing` or whatever? Aren't those just windows that exist on a given space? Are you trying to target a new window to some other non-active desktop? – Etan Reisner Jun 01 '16 at 14:52
  • indeed I am using `hs.drawing`. and I suppose those are just windows. but a) I don't see a way to get the window out of a drawing, and b) I don't see a way to move a window to specific desktop – Vitaly Kushner Jun 01 '16 at 22:12
  • Yeah, hammerspoon doesn't really deal with spaces yet. There's [this "experimental" module](https://github.com/asmagill/hs._asm.undocumented.spaces) that you can try to use (and other people have if you look around) that might be of use to you here. – Etan Reisner Jun 02 '16 at 01:58

1 Answers1

1

As the documentation always names THE desktop and desktop does not have any window id nor subrole I assume Hammerspoon does not support multiple desktops?

Hammerspoon seems to treat desktop as one of a kind top level window object.

Piglet
  • 27,501
  • 3
  • 20
  • 43