Re: Looking for empty folders
Re: Looking for empty folders
- Subject: Re: Looking for empty folders
- From: Philip Aker <email@hidden>
- Date: Fri, 6 Mar 2009 13:09:40 -0800
On 2009-03-06, at 12:07:06, Ronald Hofmann wrote: Some of my empty folders show 8 kb of size instead of 0 kb and are not shown in my result list.
I wonder if you have set custom icons on those folders?
If so, there will be an invisible file in the folder called "Icon\r". You can see them in a Terminal listing with 'ls -@Abl'.
I can confirm that an empty folder with a custom icon has a size > 0 on 10.5.6.
set p2d to (path to desktop folder) tell application "System Events" to get files of folders of p2d whose visible is false and name is not ".DS_Store"
I tried with System Events on 10.5.6. Maybe it's workable on 10.4 as well.
set p2d to (path to desktop folder) as alias tell application "System Events" to get POSIX path of folders of p2d whose size is 0
Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@ Democracy: Two wolves and a sheep voting on lunch.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden