我正在尝试使用 Automator 创建服务。
在运行 AppleScript 操作中,我有一个变量,它是一个字符串,其中每一行都是一个由换行符分隔的单词。像这样:
à
às
a
ante
ao
aos
após
aquela
当我尝试通过执行以下操作将其回显到终端时:
do shell script "echo " & (finalText as string)
我收到此错误:
The action “Run AppleScript” encountered an error: “sh: line 1: a: command not found
sh: line 2: à: command not found
sh: line 3: ante: command not found
...
sh: -c: line 30: syntax error near unexpected token `do'
sh: -c: line 30: `do'”
有任何想法吗?