I don't have much experience with the Terminal or Shell commands but I am creating a small utility that passes a file name to a shell command. I have discovered that the Livecode Shell command fails if the filename includes spaces. Also I'm also sure that there are other characters that the OS allows in filenames that the shell does not. I appear to have solved the problem by wrapping the file name in quotes e.g. :
Code: Select all
put tShellFileSpec & " -p " & tProjectName & " " & "/Users/skids/Temp/" & quote & "20150505_110851_P1000252 copy.RW2" & quote into tShellCommand
best wishes
Skids