本文介绍了AppleScript的:错误" SH:跛:找不到命令"号127的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想下面的命令创建一个AppleScript。我有一个问题是,有一个在三线错误。我已经使用跛脚
命令直接在终端没有问题。此外,跛脚
不是一个原生Mac工具;我安装了它在我自己的。是否有人有办法解决吗?
做shell脚本CD〜/下载做shell脚本说-f〜/下载/ RE.txt -o〜/下载/ recording.aiff做shell脚本跛脚-m M〜/下载/ recording.aiff〜/下载/ recording.mp3 - 错误SH:跛:命令未找到127号做shell脚本RM recording.aiff RE.txt
解决方案
可能是一个 PATH
问题 - 使用的完整路径,瘸腿的,例如
做shell脚本在/ usr / local / bin目录/瘸-m M〜/下载/ recording.aiff〜/下载/ recording.mp3
I am trying to create an AppleScript with commands below. An issue I am having is there is an error at the third line. I have no problem using the lame
command in the terminal directly. In addition, lame
is not a native Mac utility; I installed it on my own. Does anybody have a solution?
do shell script "cd ~/Downloads"
do shell script "say -f ~/Downloads/RE.txt -o ~/Downloads/recording.aiff"
do shell script "lame -m m ~/Downloads/recording.aiff ~/Downloads/recording.mp3"
-- error "sh: lame: command not found" number 127
do shell script "rm recording.aiff RE.txt"
解决方案
Probably a PATH
problem - use the full path for lame, e.g.
do shell script "/usr/local/bin/lame -m m ~/Downloads/recording.aiff ~/Downloads/recording.mp3"
这篇关于AppleScript的:错误" SH:跛:找不到命令"号127的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!