Single File Details

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Feb 27 14:12:53 EST 2009


Hi Len,

Use the lineoffset function to find the URL-encoded file name in the  
detailed files. When you know which line you need, you can take the  
file size and resource fork size to calculate the total file size.

What exactly are you doing with the WAV files? If you use a command  
line utility to convert them, you will probably be unable to report  
any progress during the conversion of one file. Can you give more  
details?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz

Op 27-feb-2009, om 19:45 heeft len-morgan at crcom.net het volgende  
geschreven:

> I can't seem to find a command for this:
>
> I want to get a list of files to be converted (they happen to be  
> wav files
> but it doesn't really matter).  As I go through each file in the  
> list, I
> want to be able to update a progress bar that indicates how far  
> through
> the list I am and another one that indicates how far through the  
> current
> file I am.
>
> The first requirement was easy and is working.  I need to be able  
> to find
> out the file size so I can calculate the current progress in that one
> file.  I know I can use "the detailed files" to get all of the info  
> on all
> of the files in the default directory but is there something that will
> allow me to get just the information on a single file?
>
> I am currently using "answer file" to get the list of files  
> (returns one
> per line) so I COULD get the detailed files from that since they  
> will only
> be allowed to select files from a single directory at a time (that  
> IS true
> isn't it?).
>
> Any ideas would be appreciated.
>
> While I'm here.... :-) , has anyone written scripts that will read  
> through
> and process a wav file and would be willing to share what they've  
> learned?
>  Might save me some time.  If not, I'll contribute what I end up  
> with when
> I'm done.
>
> len morgan
>



More information about the Use-livecode mailing list