applescript and do shell script
Imported from the Apple Support Forums via the Wayback Machine 🔗
i have an applescript that issues a tar command.
the tar command I need is
gnutar czvf "/Volumes/Cold
Storage5/144000-144999/144073.tgz" "/Volumes/COLD STORAGE/144000-144999/144073" --exclude "/Volumes/COLD STORAGE/144000-144999/144073/print drive/*"
when i run that in the terminal .. it works perfect.
when I have applescript run it, it errors out.
I turned on logging and this is what applescript is trying to run.
gnutar czvf "/Volumes/Cold
Storage5/144000-144999/144073.tgz" "/Volumes/COLD STORAGE/144000-144999/144073" --exclude "/Volumes/COLD STORAGE/144000-144999/144073/print drive/*"
you can see that applescript escapes the quotes. if I copy and paste this into the terminal it errors out.
Why does the terminal direct version work, but not the version coming from my applescript? They are exactly the same, unless I am missing something.
Thanks in advance.
Anyone have any ideas?
Thanks,
-P
9 replies
Sign in or join Beachball Help to reply.
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0