I wrote my first Applescript today and I thought it could be useful, so I decided to share it with you
This script generates a random UUID and copies it to the clipboard.
set the clipboard to (do shell script "python -c 'import uuid; print uuid.uuid1()'")
After some reseach I found out, that my variables did contain invalid characters in my case the variable contained a –.
It is also possible to use any unicode characters for variables, but of course this is not recommended.