You can get rid of the new line from the text that gets copied to the pasteboard by adding the -n command line parameter to the echo call as below:
if (window.widget) widget.system("/bin/echo -n '"+hex+"' | /usr/bin/pbcopy", null);
Existing users, log in. New users, create a free account. Lost password?
web-safe color picker widget
Version: 1.0.1
You can get rid of the new line from the text that gets copied to the pasteboard by adding the -n command line parameter to the echo call as below:
if (window.widget) widget.system("/bin/echo -n '"+hex+"' | /usr/bin/pbcopy", null);
The new line in the copied text - Yadda Yadda
Yep, I just updated ColorSafe to take advantage of this. No more trailing newlines!Reply to This
Thursday, October 20 2005 @ 10:39 PM PDT