Mike,

That's just what I thought, but it doesn't agree with the actual file size 
shown in the finder, dividing by 1000 does agree with the finder.

It appears this depends on whether the system uses Binary or Decimal 
calculations, it seems Apple use Decimal.

Paul

On Sep 22, 2014, at 5:28 PM, miked...@gmail.com wrote:

> ‎To be technically correct divide by 1024.  
> 
> Mike
> 
>   Original Message  
> From: la...@significantplanet.org
> Sent: Monday, September 22, 2014 8:21 PM
> To: How to use LiveCode
> Reply To: How to use LiveCode
> Subject: Re: file size
> 
> Thanks Paul and Alex and Richard,
> 
> I ended up using Paul's code:
> on mouseUp
> answer file "?"
> put "binfile:" & it into tFile
> put the length of URL tFile / 1000 & "KB" into fld "myResultField"
> end mouseUp
> 
> It works just great!
> Larry
> 
> ----- Original Message ----- 
> From: "Paul Hibbert" <paulhibb...@mac.com>
> To: "How to use LiveCode" <use-livecode@lists.runrev.com>
> Sent: Monday, September 22, 2014 4:50 PM
> Subject: Re: file size
> 
> 
>> Larry,
>> 
>> Try:
>> 
>> on mouseUp
>> answer file "?"
>> put "binfile:" & it into tFile
>> put the length of URL tFile / 1000 & "KB" into fld "myResultField"
>> end mouseUp
>> 
>> Paul
>> 
>> On Sep 22, 2014, at 2:29 PM, 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?
>>> 
>>> 
>>> 
>>> Thanks,
>>> 
>>> Larry
>>> _______________________________________________
>>> 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
>> 
>> 
>> _______________________________________________
>> 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 
> 
> 
> _______________________________________________
> 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
> 
> _______________________________________________
> 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


_______________________________________________
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