错误“sh:dpkg-deb:command not found”编号127

时间:2014-06-21 08:28:22

标签: macos applescript dpkg

error "sh: dpkg-deb: command not found" number 127

我的完整代码是

  tell application "AppleScript Editor"
    display dialog "Enter the Folder Name. It must be on your Desktop" default answer ""
    set debID to text returned of the result
end tell

do shell script "cd ~/Desktop"
do shell script "dpkg-deb -b " & debID

请告诉我如何解决错误,谢谢

1 个答案:

答案 0 :(得分:0)

变化:

do shell script "cd ~/Desktop"
do shell script "dpkg-deb -b " & debID

为:

do shell script "cd ~/Desktop ; /usr/local/bin/dpkg-deb -b " & debID

(或dpkg-deb的任何适当路径)。