How to count the contents of multiple folders

Hey guys,.

I tried the answer to my question for a while now, maybe you guys can help.

Here, on my screen, I have several files selected.

I'm looking for a program or a script that will tell me how many files are located in the selected folders.

I came across this script but it will count only (1) folder, not several.

Tell application "Finder".

count files of the entire contents of (choose folder)

tell the end

I checked easy find and could not do what I want.

Thank you guys.

Select one of the several folders in the Finder and then just run this AppleScript. It will loop through each selected folder and count each file in the selected folder hierarchy. A running total will be kept and when you're done, a total number of files will be displayed.

Copy and paste the following in your (Launchpad: others: Script Editor), click on the hammer icon to compile it, select some files and click on execute in the toolbar.

Looking for two record operations with the last giving you a clickable application on your desktop:

  1. Source code record
    1. Save...
      1. Save as: hiercnt
      2. Geographical area: Documents folder or wherever you want
      3. File format: text (.applescript extension added to the file, save as)
      4. Everything else is not checked.
  2. Script record
    1. option-file menu: Save under...
      1. Save as: hiercnt
      2. Location: Office
      3. File format: Script, Script Bundle or Application (Add .scpt, scptd or .app in filename)
      4. Check hide Extension.
      5. All him remains unchecked

Code:


[You must love code that works constantly until you publish it. Update to come. Viking]

Tags: Mac OS & System Software

Similar Questions

  • How to see the content of what's currently on my iCloud of this site

    How to see the content of what's currently on my iCloud.  I would like to see these files presented in a display of file manager type in order to sort and remove if necessary.

    Go to iCloud.com, then click on your iCloud drive icon.  I hope this is what you mean or what you are looking for.

    iCloud Drive FAQ - Apple Support

  • How to replace the contents of the settings/passwords backup server / current browser bookmarks?

    Classic scenario: after the bookmark long manual organization Firefox Sync adds trash of its server to my laptop or tablet.

    Where can I find how to replace the content of the backup of the server by settings/passwords / current browser bookmarks? Stupid me, I put a new synchronization and lost this ability.

    It is not recommended to go back to the old version of Sync

    The old version is removed he'll stop being available soon, it takes getting used to using the new version.

    IIRC, it is actually possible to force synchronization of the old working with Fx29 & Fx30 using an old profile or preferences of piracy, but I don't think I should encourage users to try this, but it would be better than using an older version of Firefox which is really bad. In fact using an old outdated version of Firefox is so bad, that it is customary to recommend using a browser on alternative day of someone else instead.

    Firefox ESR is aimed at corporate users, definitely, at the moment, it will use the synchronization of the former. Who will update soon to use synchronization well again, and this time, I guess the synchronization of the former will probably totally frowned upon for example are not available at all.

    It is possible to use the feedback system to leave a short comment on Sync. I would recommend this making, but at least to make very many people of spirit comments that I doubt will have no effect.

  • ReadyCloud users do not see the contents of shared folders

    Hi all

    As long as user ReadyCloud with read/write access I can't see the contents of shared folders. (See photo).

    If I login with the user admin of ReadyCloud although I see the content in the shared folders.

    Is this a known issue? Can someone help with this diagnosis?

    Firmware: 6.5.2

    I checked with the NETGEAR support

    They should be for the suite of measures:

    -Check the DNS entries, add 8.8.8.8 and 4.4.2.2

    -Let ReadyCLoud and join. Invite users.

    Finally I "Reset permissions" on the tab "File access" to all shared folders. It worked for me!

  • How to restore the contents of the folder workstation in the default format in Windows XP?

    Dear Sir or Madam:

    I have a desktop of Microsoft Windows XP Home Edition Version 2002 Service Pack 3.

    Contents of the my computer folder is not in the correct format, I want whatever it is corrupt.

    How to restore the contents of the folder workstation to the original format?

    The first JPEG image is the content of the folder post current work that has the corrupted display format.

    The second JPEG image is the content of the folder post original work that is in the correct format.

    Please reply back soon.

    Thank you.

    Looks like you saw. Rearrange icons by | Name. Try to organize by Type and other options while keeping rearrange icons by | Show in groups were also checked.
     
  • How to compare the content of two Wordpad / documents notebook without reading them line by line?

    How to compare the content of two Wordpad / documents notebook without reading them line by line?

    Hello

    Without this feature is included in the operating system.

    However, you can use your favorite search engine to look for software that needs to perform these tasks.

    WARNING of THIRD PARTY SOFTWARE: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope this information helps.

  • How to view the contents of the c drive since it is almost full despite the movement of documents, etc. on the D drive

    I moved the documents, pictures, music etc all of drive D and removed all of the excess programs. Despite this C is always showing almost complete. How to see the content?

    I moved the documents, pictures, music etc all of drive D and removed all of the excess programs. Despite this C is always showing almost complete. How to see the content?

    Buna,

    See if this little program will help you to tell you what is causing this lack of space for you problem

    http://www.Jam-software.com/treesize_free/

    Revedere.

  • How to print the contents of a hard drive?

    Title: list of files on a specific drive.

    How to print the contents of a hard drive?  I would like to be able to remove the old files, but it would be easier if I could print the content rather than scroll through the file by file.

    Hello

    These should help:
     
    How to save and print a list of directory for a file and the folder of Vista (Windows 7 is the)
    same)
    http://www.Vistax64.com/tutorials/114593-file-folder-directory-list-print-save.html

    How to add view and directory of print in the context Menu in Vista and Windows 7 file
    http://www.Vistax64.com/tutorials/146031-context-menu-add-view-print-file-directory.html

    Use this free program which is great:

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7
    http://support.Microsoft.com/default.aspx/KB/321379

    I hope this helps.

  • How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    How to display the hidden files and folders even if I've already enabled "Show hidden files, folders and drives" to "Advanced settings"?

    After I enabled "Show hidden files, folders and drives" in 'Advanced settings', I can't yet see in the folder but I know there is a file in this program of WinRAR folder form as pictured below where I opened the case both at the same time.

    Hope you can help in this case...

    It would be possible that the file is marked as a system folder (which is just a check box in properties such as the hidden check box). So in your folder options, uncheck the "Hide protected operating system files" and see if it will be visible.

    Or another thing to try: remonter back a level, hold down SHIFT while you right-click the complete file and choose "Open command window here", then type DIR to see if the file is listed.

  • How to read the contents of the attachments to the record listener?

    Hi all

    We have a blackberry user interface application that implements FolderListener. The messagesAdded(FolderEvent e) public void in the record listener method is called whenever a new message arrives on the device.

    Now, there are some emails that will also spare.

    Can someone tell me how to read the contents of the attachment?

    I can read correctly the content of the body of the email.

    Our code to handle the arrival of e-mail for your reference is mentioned below.

    public class MyUIApplication extends UiApplication implements FolderListener
    {
        public void messagesAdded(FolderEvent e) {
            Message orginalMessage = e.getMessage();
    
            Folder messageFolder = orginalMessage.getFolder();
    
            if (e.getMessage().isInbound() == true) {
    
                String sender = orginalMessage.getFrom().toString();
                String subject = orginalMessage.getSubject();
                String body = orginalMessage.getBodyText();
    
                String attachmentContent = ""// Read atachment content here?
    
                // some more code
            }
        }
    }
    

    Any help in this regard will be appreciated.

    Thank you.

    There is no way to prevent a menu item to be added to an AttachmentHandler.  When a user clicks your menu item will be called the run method.

    If you have registered an AttachmentHandler for your type of attachment and the prefix the file name of the attachment with x-rimdevice, you would be able to access its contents of in a FolderListener.

  • HTML Help Home button - how to change the content

    I use Robohelp 11 and we post our content as microsoft HTML help.  I wonder how to change the content of the button the top of the page next to the front buttons and back at home.  Since it's HTML Help I can't use a skin to change the buttons, but I need to change what is displayed when you click the home button.  I can't find how to change when the button links to.  I just want to link to our home page.

    Thank you!

    Matthew

    Hello

    On luck outside, that you are not really wanting to address the 'skin in a CHM' quite yet, try this.

    First, note the path and the name of the file that you want to appear when the user clicks on the Home link.

    Open the pod of setting up a project. (View > pods > project configuration)

    Expand Windows, and then double-click the CHM window. (If you do not see a CHM window, you will need to create a)

    In the Properties window, click the Advanced Properties button.

    And from the Advanced Properties dialog box, you type (Yes, you heard that right, TYPE) the path and the name of the file you want. (Remember this first step?) Note that you can also type a URL pointing to a website here.

    Hope this helps... Rick

  • How to count the page that is provided on page element

    How to count the page that is provided on page element

    Hi durgeshj41842015,

    the kDocBoss has an IPageList interface with GetPageCount() function.

    Markus

  • How to count the number of pages on the spread

    How to count the number of pages on the spread

    #include "ILayoutControlData.h".

    #include "ILayoutUIUtils.h".

    #include "ISpread.h".

    InterfacePtr layoutData (Utils()-> QueryFrontLayoutData());

    If (layoutData)

    {

    UIDRef spreadRef is layoutData-> GetSpreadRef();.

    InterfacePtr activeSpread (spreadRef, UseDefaultIID ());

    Int32 count is activeSpread-> GetNumPages();.   Number of pages of active propagation.

    }

  • How to count the number or lines in the file

    Hi Experts,

    I'm file as source and Oracle as target. My folder that contains some data that will load the target.
    My requirement is that I want to count the number of lines that contains my folder. Please help me how to count the total number of lines in the file.


    THX,
    Sara.

    Hi Sahaveda,

    Now, I tried and it works.

    Sorry my mistake again.

    I created HR. ETL_FILE_LOG as below:

    CREATE THE TABLE HR. ETL_FILE_LOG (numero_fichier varchar2 (10))

    Below the code will run without error:

    import java.lang as lang

    import java.sql SQL

    import of java.lang.String

    Import os

    disadvantages is sql. DriverManager.getConnection ("<%=snpRef.getInfo("DEST_JAVA_URL")%>", "<%=snpRef.getInfo("DEST_USER_NAME")%>", "<%=snpRef.getInfo("DEST_PASS")%>")

    dblinks = cons.createStatement)

    File1 = Open ('c:\EMP.txt','r')

    Count = 0

    Line = file1. ReadLine()

    all online! ='' :

    Count += 1

    Line = file1. ReadLine()

    File1. Close()

    sqlQuery = "insert into HR. "The values of ETL_FILE_LOG (numero_fichier) (" + str (count) + ' ") '.

    rqQuery = dblinks.execute (sqlQuery)

    jerks. Close()

    Concerning

  • How to count the number of hit on the page, click

    Hello..
    can someone tell me...
    How to count the number of hit on the page, click

    Thanks in anticipation...

    Somethig like that?
    http://www.baigzeeshan.com/2011/12/Oracle-ADF-storing-temporary-values-in.html

Maybe you are looking for

  • FireFox 29.0.1 is sluggest to inadmissible

    I am running Windows XP and two service Packs, and have maximum RAM. The hard drive has at least 60% of available space. I have several programs of malicious software bugs who reported that my system is clean. The hard drive has been defragmented. Wh

  • When I opened a new tab opens a Bing search windos rather og a blank as he used to

    When I open a new tab, it opens a Bing search window instead of a blank as he used to.When FF starts, it opens a blank page as it should, but if I click on the sign + to the right of the current tab is when the Bing tabs open. It's just a search engi

  • Virus is preventing the programs from running

    Help me please...  This is a serious matter! My dell c400 suffered from sore virus, probably called autorun.inf, This virus has added autoplay option righclick disks menu. I tried several antivirus, but before I can run antivirus.exe, disables viruse

  • SWEETPAKS - IS IT SAFE?

    I want to uninstall the update for 1.1 SweetPaks Manager as I suspect it is a virus? It will not unistall it just said an unidentified user you want to access your computer and is a Sweetpacs as the sender?  Is Sweetpacs safe?

  • Message of support HP _re old version of windows

    I managed enhanced W8 to 8.1 W on my new HP Pavilion Touchsmart 15 laptop PC. Now I'm in a quandry on a message that appears in the HP Support Assistant. What what can make this old version of windows be on my C drive? I certainly don't want to delet