How do I search for and remove empty folders?

I would love any help. I've spent about 6 hours yesterday looking for a solution for this project...
PROBLEM:
I'm trying to organize a 6GB file library of sheet music documents.
After using Gemini to find and delete duplicate files, I'm left with hundreds of empty folders and files spread across the folders in odd locations.
How do I find and delete all the empty folders?
My hope is to remove all the empty folders and then manually reorganize the files.
This will probably take quite a few hours.
Here is an example of the mess. The folders currently look something like this:
Music Library 1 > Kids Songs > Easy > Empty Folder
Music Library 2 > Kids Songs > Easy > "Ode To Joy.mus" and other files are here
Music Library 3 > Kids Songs > Intermediate > Intermediate songs files are here
A better / larger question might be - What is the best way to organize this mess?
Is there a good file manager for organizing these documents? We run a music school and are trying to set it up for multiple teachers to organize their files and sort by a few different tags like: Difficulty, Genre, Teacher Name, Composer name etc.
Thank you so much for any help!

I'm afraid the ability to find empty folders is a wee bit complicated, and quite simply is completely broken in Mavericks. Just because a folder appears to be empty, doesn't mean that it is--if it was ever opened it will have an invisible .DS-Store file inside. For instance, in Snow Leopard if I do a search on the Desktop folder for Kind is Folder, plus Number of Items is less than two, I get two folders, both are empty but one I just created and never opened, and the other I created some time ago and later tossed the contents, which means that it has a .DS-Store file. Both show "No Items" in Icon view. If I modify the Number of Items to "equals 0" only the newly created and unopened folder "empty" shows up. If I try the same thing in Mavericks I get no sensible results at all in any set of search parameters.
The moderator at Houdah Software reports: "Spotlight on Mavericks reports a value of 1 for "Number of Items" (kMDItemFSNodeCount) for all folders." He says he has reported it as a bug. Evidently it is not yet fixed.
Francine

Similar Messages

  • How do I search for and select a repeating phrase in a file.

    How do I search for and select a repeating phrase in a file read via Applescript. The file contains details of phone calls submitted to a charity and I want to be able to analyse the types of call taken. The phrase is 'Type of enquiry' and I want to extract the description that follows. I am a beginner at Applescript and have been working my way through Applescript 1-2-3 but cannot find an obvious solution although I have manged to open and read the file! All suggestions gratefully received.

    In applescript you can use something like the following:
    set {oldTID, my text item delimiters} to {my text item delimiters, "Type of enquiry"}
    set dataBits to text items of textToParse
    set my text item delimiters to oldTID
    the variable dataBits, then, will be a list where every list item is a string that starts with the text following that phrase. 
    You could do regular expressions searches as well, but you'd need to download and install the Satimage osax.

  • Anyone help? I click on buttons within websites and my mac opens new webpages advertising, mac keeper pro or some foreign exchange trading platform. Did i pick something hop in a download? how do i search for and get rid of this annoying infiltration?

    Anyone help? I click on buttons within websites and my mac opens new webpages advertising, mac keeper pro or some foreign exchange trading platform. Did i pick something hop in a download? how do i search for and get rid of this annoying infiltration?

    You've installed some form of adware. Take a look here:  http://www.thesafemac.com/arg/

  • Carriage return in textarea - how do I check for and remove it???

    I have an html form that has a <textarea> element for user input. I work mainly with Java and some JavaScript. Since carriage returns are permitted in a <textarea> element, upon retrieving the value submitted, my Java and/or JavaScript variables contain carriage returns as well, making the values incomplete.
    For Example :
    String dataSubmitted = request.getParameter("formInput");
    <script language="JavaScript">
    var textValue = "<%=dataSubmitted%>";
    ....//do other stuff
    </script>When I view the source of my JSP page, the above statement of code looks like this:
    var textValue = "This is some text that
    I submitted with a carriage return";I'm putting the text submitted through this form into a mysql database, and when I pull up the values I find that it has recorded the carriage return as well. There is an actual symbol representing a carriage return in the db field.
    What I'd like to do is use some Java code to go through each character of the String and find and remove the carriage return, perhaps replacing it with an empty space instead. But how do I check for a carriage return in a String variable?
    Also, is there a way to use JavaScript to alert the user when the carriage return button is pressed when they're in the <textarea>?
    Any input is appreciated,
    Thank You,
    -Love2Java

    What I'd like to do is use some Java code to go through
    each character of the String and find and remove the
    carriage return, perhaps replacing it with an empty
    space instead. But how do I check for a carriage return
    in a String variable?The carriage return is represented by the \r. Generally there is also a newline, the \n. You can use String#replaceAll() to replace occurences of them by a space.
    string = string.replaceAll("\r\n", " ");
    Also, is there a way to use JavaScript to alert the user
    when the carriage return button is pressed when they're
    in the <textarea>?You can capture keys using the 'onkeypress' attribute. The keyCode of a the return key is 13. So simply catch that:<textarea onkeypress="if (event.keyCode == 13) alert('You pressed the return button.'); return false;"></textarea>The return false prohibits the linebreak being inserted. If you remove that, then it will be inserted anyway.

  • How can I search for email senders and/or email subject(s)?

    I'm probably not savvy enough to figure this out. When I search, e.g. for "Katie" I get to look at several messages where she is cc'd. I also receive messages from "Katie." How do I search for them? I know they are there because I just sent one to trash the other day. I suspect there are a number of them in trash. The only way I seem to be able to access them is to scroll...and that's a bummer.

    Hello.
    *You can click in the search field in the ThunderBird toolbar.
    *Type the words you are looking for such as email the email address
    *Hit enter or select an auto completion choice
    To narrow search results:
    *Click any year, month or day to show only results from that time. Click the looking glass to zoom out.
    *If you cannot see the timeline, click the timeline icon in the top right corner.
    *Hover over any filter, person, folder, tag, account or mailing list in the left pane to see where in time and on the timeline the messages matching the filter are located.
    To exclude persons, folders or other criteria from search results:
    *Click the unwanted person, tag, etc..
    *Select can't be… from the menu that comes up.
    To reduce results to a particular contact, account or other criterion:
    *Click the desired person, folder, etc..
    *Select must be… from the menu that comes up.
    To filter your search results:
    *Check From Me to see only messages sent from one of your email addresses.
    *Check To Me that include you as a recipient.
    *Check Starred to see only starred messages.
    *Check Attachments to see only messages that include attached files.
    To open any message, click its subject line in search results. To act on multiple messages or see more details, click Open as list at the top of the results list.
    I got this from [http://email.about.com/od/mozillathunderbirdtips/qt/Search_Mail_in_Mozilla_Thunderbird.htm here]. Go ahead and click that link if you need anymore help! Cheers.

  • I downloaded some pictures my daughter sent in a file. I named the file ".zip" and now I can't locate it in "My Pictures" How can I search for it?

    How do I search for a file I can't locate?

    { Ctrl + J } to open the Downloads window, then right-click that zip file and use '''Open Containing Folder'''.

  • How do I search for lines with a particular pattern and delete them when a match occurs

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 

    How do I search for lines with a particular patter and delete them when a match occurs? For example delete lines containing SUB_NAME = "?" where ? is any string. 
    Lines in what? And what language are you using to develop with?
    Are the lines in a text file? A RichTextBox? A TextBox? Some other control? A List(Of String)?
    Is there some expectation by you that by providing what you wrote in your question post that the knowledge in your mind about what you are thinking about will mysteriously emanate to anybody reading your post so all of the sudden your knowledge will
    become their knowledge and they will be able to provide you with an answer as they will suddenly understand what you are trying to do? Because that's probably impossible. Most people try providing enough information in a question so anybody, even stupid people
    like me, can understand what they want. Maybe you should try that. As well as selecting an appropriate forum for your question in the future. Usually a question like this is related to programming in a particular language therefore a language forum may be
    a good choice. Or not.
    La vida loca

  • How do I ask photoshop elements to search for and only add pictures on my computer?

    How do I ask photoshop elements to search for and only add pictures on my computer?

    vbond0071 a écrit:
    Please tell me its a simple fix???
    [email protected]
    My suggestion:
    Read the help file carefully:
    http://helpx.adobe.com/elements-organizer/using/workspaces.html
    Now have a look at the the organizer display layout. Just over the main display panel where thumbnails are shown, there is a drop-down menu to choose the sort order. I assume you are on a recent version of Elements? If you are on PSE12 or 13 you can choose the chronological order (ascending or descending), the filename order, or the import batch. Additionally, if you are viewing an album you can have a manual custom sort.
    My other advice is that before you use the organizer, you take the time to read this help file carefully:
    Elements Organizer Help | Creating and editing catalogs
    The organizer is a very power tool if you understand what it can do and if you don't have misconceptions about how it works. It's a powerful toolset  based on catalogs. It can handle and manage folders and files, but that's not its main purpose. Its ability to manage the information included in the exif metadata of your files and the important information you enter with categories, keywords, captions, notes, ratings or the way you include pictures in albums, creations, stacks or version sets is very powerful.

  • How can I search for duplicate photos in iPhoto libraries?

    How can I search for duplicate photos in iPhoto 9.5.1 library.  Installed on iMac 2.7 GHz Intel Core i5, Mavericks 10.9.5.

    These applications will identify and help remove duplicate photos from an iPhoto Library:
    iPhoto Library Manager - $29.95
    Duplicate Annihilator - $7.95 - only app able to detect duplicate thumbnail files or faces files when an iPhoto 8 or earlier library has been imported into another.
    PhotoSweeper - $9.95 - This app can search by comparing the image's bitmaps or histograms thus finding duplicates with different file names and dates.
    DeCloner - $19.95 - can find duplicates in iPhoto Libraries or in folders on the HD.
    DupliFinder - $7 - shows which events the photos are in.
    iPhoto AppleScript to Remove Duplicates - Free
    PhotoDedupo - $4.99 (App Store) -  this app has a "similar" search feature which is like PhotoSweeper's bitmap comparison.  It found all duplicates
    Duplicate Cleaner for iPhoto - free - was able to recognize the duplicated HDR and normal files from an iPhone shooting in HDR
    Some users have reported that PhotoSweeper did the best in finding all of the dups in their library: iphoto has duplicated many photos, how...: Apple Support Communities.
    If you have an iPhone and have it set to keep the normal photo when shooting HDR photos the two image files that are created will be duplicates in a manner of speaking (same image) but there are only twp apps that detected the iPhone HDR and normal photos as being duplicates:  PhotoSweeper and Duplicate Cleaner for iPhoto.  None of the other apps detected those two files as being duplicates as they look for file name as well as other attributes and the two files from the iPhone have different file names.
    iPLM, however, is the best all around iPhoto utility as it can do so much more than just find duplicates.  IMO it's a must have tool if using iPhoto.

  • How do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    how do i search for a photo album when i use the search facility on my iPad or iPhone it will not find photo albums of a given name can anyone help

    Photo albums are not searched by Spotlight Search.  Go to Settings > General > Spotlight Search to see and reorder the available search items.
    For more details, see page 12 of the iPad iOS 5.1 User Guide

  • How do I search for all "missing" tracks within the iTunes database?

    I found the dreaded ! of death, and sadly I verified the tacks indeed are not on my hard drive.
    Is there a way to sort on this tag so that I can see what else might be missing on my hard drive but remains in the database (sort of similar to how you can search for all tracks that have missing artwork)? 

    Thanks.  It works perfectly.
    URL for anyone else in need:  http://dougscripts.com/123

  • When in i-tunes 11 mac, how do i search for a song as well as a genre at the same time?

    when in i-tunes 11 mac, how do i search for a song as well as a genre at the same time?

    If you mean searching for a song that you already have in your Library, then you can select "Music" first. Then, go across horizontally to Genres and select that; then by using the drop-down menu found under "View" & (of course) select "View Options"-- you will be presented with a limited # of choices to sort by.
    My iTunes 11.0.5 shows 4 parameters to choose from: Title, Artist, Year and Rating. Then you can sort & finally...
    Enjoy,
    mm~

  • How do I search for a specific name of an email sender?

    I'm trying to locate, in the easiest way possible, a name that should have appeared in my inbox... How do I search for a specific name?

    type it in the big box on the toolbar and press enter.

  • How do I search for a previous question I posted?

    Hi
    How do I find older questions I had posted on the forum/community?
    I had posted a question a few months prior and had a response.  I'd like to look up that resonse again, but I cannot find it in my history.
    The post is only a few months old, but does not show up in the history of my posts (that I can find).
    How do I search for ALL of my old posts? 

    Click Your Stuff > DIscusssions. This should list all the threads you have contributed to, most recently active first, and paged back to your earliest post.
    If you use the filter for Open Questions or Answered Questions you should see the threads that you started, still open and marked answered respectively.
    If your thread really has disappeared then the usual explanation was that something contentious got added to it and the hosts deceived to evaporate the whole thing.
    tt2

  • How do I search for a word through multiple files in my directories ??

    Hello everyone
    How do I search for a word through multiple files in my directories ??
    I am guessing one tedious way to do it would be to pass all the file names as command line arguments but I"m sure there exist a much easier and faster way to do it.
    Thanks a lot

    You need to pass only the directory name as parameter and then retrieve the files(recursively throug subdirs or not, however you wish) of that directory.
    There were at least 2 threads yesterday on how to retrieve files from directory, and there are many others in the archive so I leave the search part to you ;)
    HTH
    Mike

Maybe you are looking for