Re: Looking for empty folders
Re: Looking for empty folders
- Subject: Re: Looking for empty folders
- From: KOENIG Yvan <email@hidden>
- Date: Fri, 6 Mar 2009 17:41:05 +0100
Le 6 mars 2009 à 17:20:10, Mark J. Reed a écrit :
tell application "Finder" to set emptyFolders to folders of myfolder
whose (size) is 0
Once again, it' seems that it's a macOs X 10.5.x dedicated instruction.
With 10.4.11 it fails.
So if a script may be used on both OS,
set emptyFolders to paragraphs of (do shell script "find " & quoted
form of POSIX path of myfolder & " -type d -empty ")
or
set emptyFolders to paragraphs of (do shell script "find " & quoted
form of POSIX path of myfolder & " -type d -empty maxdepth 1")
is more efficient
Yvan KOENIG (from FRANCE vendredi 6 mars 2009 17:32:52)
_______________________________________________
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