Reputation: 367
I have a weird looking problem (a similar one was asked here, but I don't want to accept that Automator only pipes only 1 line into the shell script action!: Mac Automator: shell script gets only one line)
Automator-Workflow, type "service", 3 blocks:
When I select a multiline text and run this service only the first line finishes in the clipboard.
I made three other tests:
So it seems obvious that the run shell script action contains the problem. But I have used the shell script action (with web-content) many times before with no problems.
Any ideas? Maybe a problem with encoding and or line-endings?
Upvotes: 2
Views: 3518
Reputation: 11
I ran into the same issue. Instead of using the 'copy to clipboard' command I then tried executing another shell script (setting its input to 'stdin') containing only the command 'pbcopy'. Afterwards line breaks were preserved properly.
Upvotes: 1
Reputation: 63892
At least on my Mac, when
save at some name (mine is TestService), then
Got to the clipboard the next:
2 ééééééééééé
3 íííííííííí
4 αβγδεζη
5 ЧШЩЪЫЬЭ
6 aaaaaaaaaa
Try exactly the above... ;)
Upvotes: 1