title: how can I echo something without newline with osascript in `run script` workflow in alfred?
body: <p>I wrote some script in alfred workflow with osascript(js). As we known,  <code>console.log</code> will left an <code>undefined</code> after echo the log to stdout, we could not use it to pass the result to the workflow outputs like <code>clipboard</code>. 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?</p>
  
  <p><a href="https://i.stack.imgur.com/RAguN.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RAguN.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/ymzXm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ymzXm.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6Hwls.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6Hwls.jpg" alt="enter image description here"></a></p>
  
  <p>Function of the code could be ignored. Just focus on how to echo without a newline tailing. Thank you.</p>