I have a simple
.exs script that generates a string based on some inputs. How would I get that onto the system clipboard on macOS.
Here’s what I have so far:
- Gather input from the user via
- Write the output to a file temp using
- Run a bash script that outputs that temp file to
This technically works but there must be a better way that I wouldn’t be ashamed of. Any help would be very much appreciated.