On Apr 21, 2013, at 12:49 AM, Christian Schmitz 
<[email protected]> wrote:

> 
> On 21.04.2013, at 03:21, Scott Crick <[email protected]> wrote:
> 
>> When I use FolderItem.PhysicalFileTotalLengthMBS, the size of this file is 
>> returned as 331776 bytes. When I divide this by 1024, I get 324 KB. If I 
>> divide it by 1000, I get 331 KB. Neither of these is what the Finder is 
>> reporting—339 KB.
> 
> FolderItem.PhysicalFileTotalLengthMBS is the size of resource fork and data 
> fork.
> It does not count extended attributes.

Hmmm... is there another call that works better?

>> Is there a different function I should be using? I need to get the size as 
>> it's reported in the Finder.
> 
> 
> You could ask the Finder for file size with AppleEvents/AppleScripts. 

The problem there is that I can't rely on the Finder running. I need a method 
that would be independent of the Finder.

Sincerely,

Scott
--
Searchware Solutions
Simply Great Software
www.searchwaresolutions.com

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to