Re: joining several data files together (aka UNIX cat in AS)
Re: joining several data files together (aka UNIX cat in AS)
- Subject: Re: joining several data files together (aka UNIX cat in AS)
- From: jj <email@hidden>
- Date: Mon, 03 May 2004 11:07:22 +0200
>
At 03:04a -0500 05/02/2004, Richard Covert didst inscribe upon an
>
electronic papyrus:
>
>
> Does anyone know of an Applescript equivalent to the UNIX cat command?
>
>
>
> I want to join several MP3 into one larger file. I curently do a "do
>
> shell script" coomand which calls a bash shell script file cat the
>
> files together.
>
>
Cool, I didn't know you could combine MP3s that way.
Me neither... I think you will loss information and create some noise in the
joining-points (?) I used allways this one:
http://mp3wrap.sourceforge.net/
>
> is there a Finder equivalent to the cat command??
>
>
Nope.
>
>
> opening the data file for reading, then writing it to the new data
>
> file, and then looping thru the rest of the data files would work,
>
> but it would be slower then just calling the UNIX shell script which
>
> uses cat.
AS's read-write commands are very fast. In my tests (I develop an app which
uses 'cat'), joining 10 files of 100 MB each one, differs from 130 seconds
using cat, to 160 seconds using vanilla AppleScript. Not a bad result after
transposing 1000 MB of data...
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.