• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Looking for empty folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Looking for empty folders


  • Subject: Re: Looking for empty folders
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 6 Mar 2009 12:16:41 -0500

On Fri, Mar 6, 2009 at 11:41 AM, KOENIG Yvan <email@hidden> wrote:
> Once again, it' seems that it's a macOs X 10.5.x dedicated instruction.

Hey, Tiger lasted longer than any other version of OS X before being
superseded, but it's been a year and a half since Leopard came out.
Let it go. ;-)

(Just kidding... I know there are lots of reasons not to upgrade,
starting with a steep price tag in a down economy...)

> 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")

Missing a '-' in the second one: it's "-maxdepth", not just "maxdepth".


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Looking for empty folders
      • From: KOENIG Yvan <email@hidden>
References: 
 >Looking for empty folders (From: Ronald Hofmann <email@hidden>)
 >Re: Looking for empty folders (From: "Mark J. Reed" <email@hidden>)
 >Re: Looking for empty folders (From: "email@hidden" <email@hidden>)
 >Re: Looking for empty folders (From: "Mark J. Reed" <email@hidden>)
 >Re: Looking for empty folders (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Looking for empty folders
  • Next by Date: Re: Background App Questions
  • Previous by thread: Re: Looking for empty folders
  • Next by thread: Re: Looking for empty folders
  • Index(es):
    • Date
    • Thread