Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Winglet80

macrumors newbie
Original poster
Apr 20, 2010
2
0
Hi! I'm fairly new to creating widgets but I'm making one with Dashcode and I have a piece of text that is generated within the program that I want to place in the macs clipboard. How do I go about with that? I have spent hours searching the web.

Thanks!
/Fred
 
Got an answer that worked.

widget.system("/bin/echo 'my text' | /usr/bin/pbcopy", null);
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.