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
请告诉我如何解决错误,谢谢
答案 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
的任何适当路径)。