Using clipboard right from applescript instead of going through shell script command

This preserves special - and not so special - characters better.