I wrote some script in alfred workflow with osascript(js). As we known, `console.log` will left an `undefined` after echo the log to stdout, we could not use it to pass the result to the workflow outputs like `clipboard`. And then I found I can use eval or just run a expression to pass something to the stdout. But we known that it would add an newline to the stdout. And then, I got a result tailing with a newline, which was additional. It was not a perfect way to resolve my problem. Is there any other resolutions?

[![enter image description here](https://i.stack.imgur.com/RAguN.jpg)](https://i.stack.imgur.com/RAguN.jpg)

[![enter image description here](https://i.stack.imgur.com/ymzXm.jpg)](https://i.stack.imgur.com/ymzXm.jpg)

[![enter image description here](https://i.stack.imgur.com/6Hwls.jpg)](https://i.stack.imgur.com/6Hwls.jpg)

Function of the code could be ignored. Just focus on how to echo without a newline tailing. Thank you.