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:

  1. service receives "text"
  2. "run shell script", "bash", input via "stdin", shell script: "cat"
  3. copy clipboard"

when select multiline text , run service first line finishes in clipboard.

i made 3 other tests:

  1. skip shell script action - directly move selection clipboard >> works!
  2. instead of taking input text selection shell script action gets input via "read clipboard" action clipboard >> fails (first line only)
  3. 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

enter image description here

save @ name (mine testservice), then

  • go textedit
  • enter text
  • select

enter image description here

  • from textedit's menu: textedit -> services -> testservice

enter image description here

got clipboard next:

2 ééééééééééé 3 íííííííííí 4 αβγδεζη 5 ЧШЩЪЫЬЭ 6 aaaaaaaaaa 

try above... ;)


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -