(Solved) Copy string within Aseprite extension

I’m working on an extension for Aseprite wherein I’d like to copy a generated string to the clipboard, but I’m unable to use the standard Lua io functions.

io.popen('pbcopy','w'):write(text):close() -- this is not supported, probably for good reason

Is there any alternative within the Aseprite API for copying text to the clipboard?

I just realized console text can be copied. This is good enough for what I’m making.

1 Like

io.popen(‘clip’,‘w’):write(“poop”):close() works (on windows)

1 Like