Obtaining the size of a file

Mark Smith mark at maseurope.net
Fri Apr 20 18:52:34 EDT 2007


Well, I guess  the detailed files actually is the native rev method,  
but this works:

on mouseUp
   put "/Users/marksmith/Desktop/add.tiff" into tUrl
   put length (URL ("binfile:/Users/marksmith/Desktop/add.tiff"))
end mouseUp

Of course, it means reading the whole file into memory, which might  
not always be ideal.

Best,

Mark

On 20 Apr 2007, at 23:32, John Craig wrote:

> Does anyone know of a native rev. method to obtain the size of a  
> file without using shell or 'the detailed files'?
>
> Thanks,
>
> JC
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution





More information about the use-livecode mailing list