Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Display the size of the trash prior to emptying - Major revision 2 to include above requests :D' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Display the size of the trash prior to emptying - Major revision 2 to include above requests :D
Authored by: MaxMarino on Mar 02, '03 06:09:52AM

I do not do Applescript (yet?) but shouldn't the line from GetSize()


tell application "Finder" to set thesize to ((physical size of thepath) / 1024)

be instead

tell application "Finder" to set thesize to ((physical size of thepath))

then the subsequent check whether thesize is >1024 is meaningful. Othewise looks to me that you get 0 everytime thesize is less than 1024 (int).

PS

I tried it but it does not see any file in the Trash: always sees Trash as empty.



[ Reply to This | # ]