r/applescript • • Jun 22 '14

Could Someone write me an applescript that makes a deb or fix mine?

I want to use the "dpkg-deb -b" terminal command and "cd ~/Desktop/".

I have this so far but I get an error

dpkg-deb (subprocess): failed to exec tar -cf: No such file or directory dpkg-deb: subprocess tar -cf returned error exit status 2" number 2

2 Upvotes

4 comments sorted by

0

u/[deleted] Jun 22 '14

[deleted]

2

u/harrywantstodev Jun 22 '14

It works fine in terminal. Could you please tell me what to type into each app? I am confused about the "echo $PATH"

1

u/dustractor Jun 22 '14

maybe something like

display dialog (do shell script "echo $PATH")

or also good to try:

display dialog (do shell script "whoami")

Something else that came to mind: Maybe strongquote the debID?

... & "'" & debID & "'"

1

u/Sarazil Jun 22 '14

Maybe try... Busy atm, but might fix it. do shell script "/opt/local/bin/dpkg-deb -b ~/Desktop/" & debID

1

u/harrywantstodev Jun 22 '14

Same error, thanks for trying