Just a suggestion why this may not be happening, interacting with the clipboard is by some a little bit of a security no no. With that said I have used JavaScript to do this exact thing, though I think it only worked in IE in Windows. It has been several years so maybe things have changed, but this is the JavaScript I used.
Code:
function ClipBoard() {
build('document.note.pad');
selectAll('note.pad');
//set the clipboard
var Tex = document.getElementById("pad").value;
window.clipboardData.setData("Text",Tex);
}
function select() {
selectAll('note.pad');
}
BTW I think these are great suggestions.