• 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: Jakub Formánek <email@hidden>
  • Date: Fri, 6 Mar 2009 15:39:30 +0100

6.3.2009 v 15:18, Ronald Hofmann:

Hi all,
I tryin to find all empty folders inside myMainFolder.
This what I tried:

tell application "Finder"
	get empty folders in folder "MacOSX:Users:ronny:Desktop:Icons:"
end tell

Which doesn´t work. Any clues?



Try this:

find -d "path" -type d -empty

Example: find -d ~/Desktop -type d -empty

AppleScript Example: set emptyFolders to do shell script ("find -d ~/ Desktop/Icons -type d -empty")

-jf _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Looking for empty folders (From: Ronald Hofmann <email@hidden>)

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