Jump to content

osascript connected to "copy to clipboard" adds newline


Recommended Posts

Hi,

When I do something as simple as return "hello"

in an applescript and connect it up to "copy to clipboard" a

new line character seems to get inserted. 

 

I don't really want the newline. Any ideas how to prevent it?

 

cheers

Oliver

 

Link to comment
  • 4 weeks later...

Hi,

When I do something as simple as return "hello"

in an applescript and connect it up to "copy to clipboard" a

new line character seems to get inserted. 

 

I don't really want the newline. Any ideas how to prevent it?

 

cheers

Oliver

 

 

This is actually added by osascript. The best option is to pop a Trim utility after the script before the copy to clipboard :)

 

Cheers,

Andrew

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...