osx - Automator: "run shell script" action only receives 1st line of input -
i have weird looking problem (a similar 1 asked here, don't want accept automator pipes 1 line shell script action!: mac automator: shell script gets 1 line)
automator-workflow, type "service", 3 blocks:
- service receives "text"
- "run shell script", "bash", input via "stdin", shell script: "cat"
- copy clipboard"
when select multiline text , run service first line finishes in clipboard.
i made 3 other tests:
- skip shell script action - directly move selection clipboard >> works!
- instead of taking input text selection shell script action gets input via "read clipboard" action clipboard >> fails (first line only)
- instead of "bash" action selected "perl" action >> fails (first line only)
so seems obvious run shell script action contains problem. have used shell script action (with web-content) many times before no problems.
any ideas? maybe problem encoding , or line-endings?
at least on mac, when
- start automator
- choose type -> service
save @ name (mine testservice), then
- go textedit
- enter text
- select
- from textedit's menu: textedit -> services -> testservice
got clipboard next:
2 ééééééééééé 3 íííííííííí 4 αβγδεζη 5 ЧШЩЪЫЬЭ 6 aaaaaaaaaa
try above... ;)
Comments
Post a Comment