On 22/09/2014 22:29, la...@significantplanet.org wrote:
Hello,

I know I can use:
put the files into field "Current Files"

to get the size of a file (in bytes), but is there any way to use "answer file" 
or some other way to get the size of just one specific file?


You could always do  (typing into email, untested ...)
   put shell("ls -l " & theFileInQuestion) into temp
and then parse temp to get the size out.
If the filename could contain special characters (e.g. spaces) then you would need to add some extra level of quotes.

So it would be easier (and almost certainly faster) to do
   put the detailed files into temp
   filter temp with "*" & theFileInQuestion & "*")
and then parse that.

-- Alex.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to