How to close all subfolders in a folder

I have seen this question, or similar, in several places, but haven't seen an answer.  Sometimes the question is not well stated or understood.  So, here goes one more time.
Suppose you have a folder named House.  Inside House are subfolders named Kitchen, Bedroom1, Bedroom2, Bathroom......
Now, after browsing through all the subfolders inside House, they are all open, showing their internal files, and filling up the screen, makeing a cluttered mess.
I would like a simple command to close all the subfolders inside House in order to clean up the mess.
Is there a way to do this with an existing command, script, or Automator?
Thanks

My reply above had a lot more in it, but it got lost, so here goes.
The keystroke combo opt-click closes the main folder and all the subfolders, so you can't actually see what happened until you reopen the main folder.  Then you see all the internal folders are closed.  My main use for this function it to leave the main folder open while closing all the subfolders. To do this requires reopening the main folder.  There are several options:
1)  opt-click followed by click closes the main folder and all the subfolders, then repoens the main folder with all the subfolders closed.
2) opt-click followed by opt-click first closes the main folder and all the subfolders, then reopens the main folder with all the subfolders open again (back where you started from).
I tried to make an Automator macro that would do 1) with one mouse click (with suitable modifier keys), but I didn't know enough to make it work.  I could get automator to do it while Automator was open by clicking on Run, but I couldn't get a macro that would work directly from a mouse click without opening Automator.  Tried the same thing in Keyboard Maestro with the same results.
I would love to have something like ctrl-opt-click that would do the whole sequence 1) above in one stroke.
Oh well, it works fine with several steps.

Similar Messages

  • How to open all subfolders within a folder

    I have a rather large folder of photos with many subfolders and further subfolders. At least a couple hundred folders.
    I would like to open them all so I can compare by name looking for duplicates and for size so I can delete the very small ones.
    Can someone tell me how to open them all?
    Thanks

    This is great! In the off chance anyone else is trying to do this, this is also useful if you have Papers and you want to switch to Mendeley. Papers keeps PDFs all organized by year and then author so the PDFs are all nested in subfolders. If you option-click the triangle next to the Papers folder, it will then show all the PDFs. Select All and then drag over the whole thing into Mendeley. I just imported my entire collection in under a minute. Glad I looked this up!

  • How to report all items in a folder, including subfolders?

    I've got a folder structure like this:
    Examples
    Product1
    Ver1_0
    Ver1_2
    Product2
    ver5_5
    Ver6_0
    How do I generate a Report that lists all items in a certain
    subfolder, including all subfolders?
    For instance how to list all items in the Examples folder and
    below (e.g all items), or how to list all items for the
    folder /Examples/Product1 and below?
    I need to provide a read-only view of the items in a report etc
    for one user-group. There might be a better way than a
    report...!?

    The spaces in the folder structure got stripped off...
    Trying to show it by prepending >'s instead of spaces to show
    the hierarchy:
    Examples
    Product1
    Ver1_0
    Ver1_2Product2
    Ver5_5
    Ver6_0
    (I hope u get it)

  • How to close all session in OBPM 10gR3

    Hi all,
    I want to know how to close all sessions in engine.
    Because if there is some sessions in engine,the Directory polling is not take effect.
    (we can not restart engine.)
    Best Regards,
    Freeman

    BPM Studio (10g) is just a plugin for eclipse. To install other plugins, just use the Help - Software Updates - Find and Install
    HTH,
    -Kevin

  • How to close all alerts?

    Hello ,
    when i open plug in and perform opration then alert window show. i want to close that alert on menu item click.how to close all alerts on button or menu item
    click?can any body help me?

    Double click the home button.  Swipe up toward the top of the iPhone each icon that you see over an app icon.
    When finished, single clock the home button.
    This closes each application one at a time.
    To close them all together, restore the iPhone.

  • Cannot download application world- how to close all the browser windows

    i cannot download the blackberry application world "sorry, your session has expired. Please close all of your browser windows and then return to the welcome page to start again." How to close all the browser windows?

    Hello numadia
    Welcome to BlackBerry Support Forums
    Is your problem resolved or you're still having problem with download BlackBerry world !
    If you're having problem then just peform a Battery pull restart by removing the battery while your device is Powered On, wait for a min. then reinsert it back after reboot please try it again.
    If problem persists then you can also go through this Knowledge Base  KB32113
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • How to close all applications at once in an iPhone ?

    how to close all applications at once in an iPhone ?

    Double click the home button.  Swipe up toward the top of the iPhone each icon that you see over an app icon.
    When finished, single clock the home button.
    This closes each application one at a time.
    To close them all together, restore the iPhone.

  • How to get all Universes in a folder?

    Hi all,
    I am trying to get all Universes (or more specifically the count of all Universes) in a folder. This means it has to count all univeses in that folder + all the universes in the sub folders + sub folders of the sub folders and such.
    How can I do this?
    I already have the code to get all the universes in the main folder:
    IInfoObjects universeFolders = infoStore.query ("SELECT * FROM CI_APPOBJECTS WHERE SI_KIND='Folder' AND SI_PARENTID=501 Order by SI_NAME");
    int universeCount = 0;
    for (int i = 0; i < universeFolders.size(); i++)
         IFolder universeFolder = (IFolder) universeFolders.get(i);
         out.println("<tr><td>" + universeFolder.getTitle() + "</td>");
         out.println("<td>" + universeFolder.getContents().size() + "</td></tr>");
         universeCount += universeFolder.getContents().size();
    Please let me know what I need to add to this to get all universes from the sub folders and the sub folders of those subfolders as well. Thank You

    You can walk down the Folder hierarchy, looking for objects with SI_PARENTID = <the target folder>.
    There's descendants query, by adding the clause SI_ANCESTOR = <parent object ID> but typically should be avoid that since it'll not be as efficient as walking down the folder heirarchy yourself.
    Sincerely,
    Ted Ueda

  • Exclude *All* Subfolders From Smart Folder Search

    I know how to make a Smart Folder search two different directories and retrieve results from each (e.g. /Applications and /Developer). I've also seen disscusions here on excluding particular subfolders, but to no avail. So here's a simpler request: is it possible to exclude all subfolders from a Smart Folder query? Suppose I have the following directory structure:
    Foo/
    A.txt
    B.txt
    Bar/
    C.txt
    D.txt
    Baz/
    E.txt
    F.txt
    G.txt
    Given a search for *.txt files, I'd like the following result:
    FooSearch.smartSearch
    A.txt
    B.txt
    G.txt
    Possible or no?

    I have a similar issue, but want to exclude results that are within Mail. 

  • How to move all files from a folder for a user to a centralized folder on a core server with a GP

    Hello,
    I was curious if someone know how to move all the files of a user "local" profile on a Terminal Server to that of a centralized server where the "local" profile of like the user desktop, favorites, setting, etc are stored in the event
    the local profile on the TS become corrupt it can pull from this server...
    The problem I have is no matter what I tell users to save there files to our Y drive that is a folder that is synced
    across all 6 of our TS servers, users still store files on there desktops, so as you can imagine if one day they are on one server, then next day they could be on another and there files aren't the same.... hence the reason why I want to move all there files
    to the centralized server so when I redo the profiles from scratch on the TS server in the farm they suck files from the core server and have all of the files they are used to having.... 
    So I was curious and I've heard from some this is possible in a GP, but I'd like to move the contents of all 6 TS for
    each user or if I have to d this on  per user basis I will, just looking for a way to move the files....

    Hi Trevor,
    To move all users’ desktop to a server, we can use Folder Redirection to do this. The path for Folder Redirection is:
    [Group Policy Object Name]\User Configuration\Policies\Windows Settings\Folder Redirection
    In this situation, we can choose to redirect desktop to the root of a network file share or a folder on a network share.
    Regarding how to configure this, the following article can be referred to for more information.
    Configuring Folder Redirection
    http://technet.microsoft.com/library/cc786749.aspx
    Hope it helps.
    Best regards,
    Frank Shen

  • How to delete all items in download folder under bookmark in the shortest time?

    I understand that all downloads from internet and yahoo/google mail are stored in the "Download" folder which I see under bookmark when I want to delete. I think that if the download folder is never emptied, then my mac will slow down. Therefore I want to delete these downloads which I have already seen. How do I delete ALL items in the shortest time? Deleting items, even in groups, takes a long time. Is there a method that I can use so that all items in the folder are deleted in one stroke?
    Thanks.
    Unguja

    Try (first button on toolbar) Organize > Select All (Command + A) to select all items in the right pane in the Library.

  • How to Read all files inside resource Folder inside Jar?

    I have a Jar file,,,, The program reads for resource files in the resource folder inside the Jar. I want my program to read all files inside this folder without knowing the names or the number of files in the folder.
    I am using this to make an Applet easy to be updated with spicific files. I just want to add a file inside the resource folder and Jar the program and automatically the program reads what ever is in there!!
    I used the File class to get all file names inside the resource folder. it works fine before Jarring the program. After I jar I recieve a URI not Herarichy Exception!!
    File fold=new java.io.File(getClass().getResource(folder).toURI());
    String[] files=fold.list();
    I hope the question is clear!!

    How to get the directory and jar file that you class resides in:
    // returns path and jarfile (ex: /home/mydir/my.jar)
    public String getJarfileName()
            // Get the location of the jar file and the jar file name
            java.net.URL outputURL = YourClass.class.getProtectionDomain().getCodeSource().getLocation();
            String outputString = outputURL.toString();
            String[] parseString;
            int index1 = outputString.indexOf(":");
            int index2 = outputString.lastIndexOf(":");
            if (index1!=index2) // Windows/DOS uses C: naming convention
               parseString = outputString.split("file:/");
            else
               parseString = outputString.split("file:");
            String jarFilename = parseString[1];
           return jarFilename;
    }If your my.jar was in /home/mydir, it will store "/home/mydir/my.jar" in jarFilename.
    note: getLocation returns "file:/C:/home/mydir/my.jar" for Windows/DOS and "file:/home/mydir/my.jar" for windows, thus why I look for the first and last index of the colon so I can correctly split the string.
    If you want to grab a file in the jar file and get an InputStream, do the following:
    import java.io.*;
    import java.util.Enumeration;
    // jar stuff
    import java.util.jar.*;
    import java.util.zip.ZipEntry;
    public class Jaris
       private JarFile jf;
       public Jaris(String jarFilename) throws Exception
           try
                           jf = new JarFile(jarFilename);
           catch (Exception e)
                jf=null;
                throw(e);
       public InputStream getInputStream(String matchString) throws Exception
           ZipEntry ze=null;
           try
              Enumeration resources = jf.entries();
              while ( resources.hasMoreElements() )
                 JarEntry je = (JarEntry) resources.nextElement();
                 // find a file that matches this string from anywhere in my jar file
                 if ( je.getName().matches(".*\\"+matchString) )
                    String filename=je.getName();
                    ze=jf.getEntry(filename);
          catch (Exception e)
             throw(e);
          InputStream is = jf.getInputStream(ze);
          return is;
       // for testing the Jaris methods
       public static void main(String[] args)
          try
               String jarFilename=getJarfileName();
               Jaris jis = new Jaris(jarFilename); // this is the string we got from the other method listed above
               InputStream is=jis.getInputStream("myfile.txt"); // can be used for xml, xsl, etc
          catch (Exception e)
             // this is just a test, so we'll ignore the exception
    }Happy coding! :)
    Doc

  • 10.6.4:  how to unlock all files in a folder

    hi,
    how do you unlock all files inside a folder?
    thank you..

    thank you.. (I wonder why you can't just do it by getting info on the folder, then saying, unlock all files inside.. (u can do like that in windows) this is always more practical than having to select all files (and accidentally opening them, or something...-) in windows you can select a folder and then say, (un)lock all files and and dirs -- and subdirs and files inside -- inside this folder.. can u do something like this in mac os? if not, that's not very good.. (I guess on the mac would need to find unix commands for doing something like this..)
    they really need to consider this for future versions, this is a no-brainer...;-)
    thank you..

  • How to Close all Oracle services on Win XP?

    While I was trying to install Dev/2k on Win XP, I got a message to close all Oracle services before I proceed with the installation. In Windows NT, I simply open Services folder from the control panel and shut down the desired srvice, but there is no such a thing on Win XP...
    Any input would be helpful.
    Thank you much in advance.

    Go to Control Panel --> Administrative Tools --> Services and find all the service names starting with Oracle and right click to manually stop each one.

  • How to add all music inside a folder to a playlist...

    Hi,
    I have Nokia e63. There is a simple thing I wanted to ask. I wish to add all songs in a folder to a playlist. How to do that? When I select all songs in a folder inside the Memory Card, there is no option to add music to playlist.
    I basically add music folders from my computer to phone's memory card. Now each of these folder contains music of different types. In windows I can easily music files to playlist by selecting all music files and putting them to a playlist.
    When I refresh the music player in my phone, all sound files get accumulated in the "All songs" group, including recorded conversations and all songs genres, which is very frustrating.
    Is there a way out?

    Hello, I also need the answer of this exact question. I have nokia 5130 Express Music but the answer to the original poster will also apply to me. The link provided in the previous post doesn't answer the question of the original asker. Let me ask it again:
    I want to create playlists out of the folders not by selecting them one by one and adding them to the desired playlist. Please do not suggest OVI Music player because that piece of junk just doesn't detect my phone no matter what mode I connect my phone with. It is detected fine in the PC suite though. Is there any harder way of doing that? By harder way I mean what playlist formats are supported by 5130 ? and is there any third party application that can create a (.pla) extension playlist. I need help. Thanks is advance.

Maybe you are looking for