Concatenate mp3-Files on Macintosh
Mark Smith
mark at maseurope.net
Wed Oct 24 18:45:12 EDT 2007
On 24 Oct 2007, at 20:47, Klaus Major wrote:
> Try this (not tested):
> ...
> answer folder "Where are the mp3-files to Concatenate?"
> put it into sourcefolder
> ask file "What is the path to the resulting file?"
> put it into targetpath
> get shell("cd" && QUOTE & sourcefolder & QUOTE)
> get shell("cat *.mp3 >" && QUOTE & targetpath & QUOTE)
I may be wrong, but I think the "cd" needs to be part of the same
shell call as the "cat", since the result of the "cd" is not
persistent across the calls, so:
answer folder "Where are the mp3-files to Concatenate?"
put it into sourcefolder
ask file "What is the path to the resulting file?"
put it into targetpath
get shell("cd" && QUOTE & sourcefolder & QUOTE & cr & "cat *.mp3 >"
&& QUOTE & targetpath & QUOTE)
Best,
Mark
More information about the use-livecode
mailing list