• 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: KOENIG Yvan <email@hidden>
  • Date: Fri, 6 Mar 2009 19:35:26 +0100


Le 6 mars 2009 à 19:25:16, Philip Aker a écrit :

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

Thanks

It works flawlessly on 10.4.11.

It works also with mac paths:

set p2d to path to desktop (* no need to coerce, it's already an alias *)
tell application "System Events" to set emptyFolders to get path of folders of p2d whose size is 0


Yvan KOENIG (from FRANCE vendredi 6 mars 2009 19:34:51)


_______________________________________________ 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
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: Philip Aker <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