Total Number of Files/Folders?

Ok I would like to count the number of files/folders within a large folder directory i.e. iTunes Library, but I can't seem to find a way to do this on my iMac?? Usually with Windows systems, you would just right click and Properties and it would tell you the total number of files and folders within that directory. How do you do this on an iMac because I usually like to keep a track of the total number of files/folders within a directory???
Sounds like a very basic thing but I can't seem to figure it out on the iMac, please help people!!!

aznblaze wrote:
Niel wrote:
2. Try using:
on open this_item
tell application "Finder"
set theText to "File count: "& count files of entire contents of this_item & return & "Folder count: "& count folders of entire contents of this_item
display dialog theText buttons "OK" default button "OK"
end tell
end open
saved as an application.
(56030)
I copied and pasted the above and saved it as an application but it doesn't run when I click on it after saving it??
When I do save it as an application through AppleScript Editor to the desktop, do I need to tick any of the option boxes when saving which are as follows;
1. Run Only
2. Startup Screen
3. Stay Open

Similar Messages

  • To find total number of files inside folder

    Hai,
       In knowledge management is there any option to find total number of files inside folder...
        I also want to see the recently uploaded and modified documents in a seperate iview...
        Iam using NW2004s SP8..
        Very urgent..
        Waiting for a positive reply..
        Thanks&regards,
         Kiruthika.S

    Hi Kiruthika,
    1. You only need the configarchive if you don't want create all the KM configuration objects mentioned in the guide manually. So, just create the objects mentioned there and you don't need the configarchive
    Also, the scenario works also on 2004s.
    2. Please check this thread on how to show the total number of files inside a folder:
    https://forums.sdn.sap.com/thread.jspa?threadID=19610
    3. It would be nice if you would consider rewarding the time people like Saravanan spend to investigate and answer your question by assigning points via the colored stars.
    Best regards,
    Robert

  • FTP: how to get total number of files in directory

    Hello Folks,
    I prefer to use FTP from the command line but cannot figure out how--after having connected to a remote directory via ftp--to list the total number of files in that directory.
    In Unix, I would do this:
    % ls | wc -l
    But hopefully there is also some way in FTP to do the same--but darned if I know how! I do see that FTP clients such as Transmit have this listing, but maybe that's a feature of the software and not ftp.
    Thanks in advance for any suggestions/tips.
    Doug

    I've done a lot of ftp scripts 10 years ago, mostly because I could not guarantee my scripted telnet would be available everywhere. The best answer today though is listed throughout this thread and that is to use the ssh family of commands that include ssh for secure remote shell, scp for secure remote copy and sftp which is the ftp interface to scp.
    My point is neither telnet or ftp are considered safe or secure anymore because listening to communications is popular, it is referenced in most "wizard" magazines, and usernames and passwords are not encrypted.
    Set up your environment first with ssh-keygen. Version 2 is more secure than version 1 if both are still offered. Then use "ssh user@hostname ls | wc -l" to get your number of files. It is simple execution with one command and returns a status.
    If you are really looking for a solution using what you are familar with and want to ignore advice concerning security, here is a sample batch script (untested). You can change the filenames, usernames, and hostnames as desired.
    rm dir.out 2> /dev/null
    echo "user sampleuser samplepw" > script.ftp
    echo "dir sampledirectory dir.out" >> script.ftp
    echo "quit" >> script.ftp
    ftp -n sample.hostname < script.ftp
    if [ ! -r dir.out ] # file not created
    then
    echo login failed
    elif [ ! -s dir.out ] # file created but empty
    then
    echo directory is empty
    else
    nf=`wc -l dir.out | cut -f1`
    echo "There are $nf files in the directory"
    fi

  • OS 10.9 Mavericks - Finder does not show number of files/folders

    The finder, in all the past Mac operation systems (as far as I can remember), has shown the number of files selected as 1 of X and included how much space is left on the drive they reside in. Yet now that I have upgraded to OS 10.9 Mavricks that has been eliminated. Why is that? I have looked everywhere for a setting to get this back but have found none.
    Anyone else see this as a problem or have found a solution?
    Please fix this Apple! ASAP!

    I'm not sure why they set it off instead of just using the preferences you had set. It grabs your other Finder Prefs.

  • Use Windows PowerShell to count and list total number of items in Folders E-Mail in Office Outlook?

    I have the need to generate a list of all outlook folders and the total number of items listed beside each folder name. I thought I could simply modify the script from " http://blogs.technet.com/b/heyscriptingguy/archive/2009/01/26/how-do-i-use-windows-powershell-to-work-with-junk-e-mail-in-office-outlook.aspx
    " regarding the total number of items in the junk folder but no luck.
    I thought I could just simply duplicate line 6 of the aforementioned script
    "$folder = $namespace.getDefaultFolder($olFolders::olFolderJunk) " and change the folder name but getting the "Method invocation failed because [Microsoft.Office.Interop.Outlook.OlDefaultFolders] does not contain a method
    named 'olFolder'.
    At line:7 char:1
    + $folder = $namespace.getCurrentFolder($olFolders::olFolder("Design Engineering S ...
    I've found a way to export a list of all these folders using exportoutlookfolders.vbs to a txt file but doesn't include total number of items.
    Looking for any pointers on how to make this work. Don't expect anyone to write it for me but I am still learning PS. Would be great to find a way to import all of these folder and subfolder names into the script. Will be appreciative of any advice though.
    There's an enormous amount of Outlook folders.
    Outlook 2013
    Windows 8
    Thanks,
    Barry

    Since I am not and administrator, but an end user, I do not have access to the Get-Mailxxxx commandlets to make this really easy and had to do this long hand.
      The following will pull folder.name, folder.items.count, and sum the total size of each folder's items for all folders and their subs. 
    Just one warning, the summation can take some time with a large PST file since it needs to read every email in the PST. 
    There is also some minor formatting added to make the results a little more readable.
    $o
    = new-object
    -comobject outlook.application 
    $n
    = $o.GetNamespace("MAPI") 
    $f
    = $n.GetDefaultFolder(6).Parent 
    $i
    = 0
    $folder
    = $f
    # Create a function that can be used and then re used to find your folders
    Function
    Get-Folders()
    {Param($folder)
     foreach($folder
    in $folder.Folders)   
    {$Size =
    0
    $Itemcount
    = 0
    $foldername
    = $folder.name
    #Pull the number of items in the folder
    $folderItemCount
    = $folder.items.count
    #Sum the item (email) sizes up to give the total size of the folder
    foreach ($item
    in $folder.Items)
    {$Itemcount
    = $Itemcount
    + 1
    $Size =
    $Size +
    $item.size
    Write-Progress -Activity ("Toting size of "
    + $foldername
    + " folder.")
    -Status ("Totaling size of "
    + $Itemcount
    + " of "
    + $folderItemCount
    + " emails.")
    -PercentComplete ($itemcount/$folderItemCount*100)
    # just a little formating of the folder name for ease of display
    While($foldername.length
    -le 19){$foldername
    = $foldername
    + " "}
    #Write the results to the window
    Write-Host ("-folder "
    + $foldername
    + "  
    -itemcount " +
    "{0,7:N0}" -f
    $folderItemCount +
    "   -size " +
    "{0,8:N0}" -f ($size/1024)
    + " KB")
    #If the folder has a sub folder then loop threw the Get-Folders function.
    #This two lines of code is what allows you to find all sub folders, and
    #sub sub folders, and sub sub sub for as many times as is needed.
    If($folder.folders.count
    -gt 0)
    {Get-Folders($folder)}
    get-folders($folder)

  • How to get total number of pages from .doc file without using Office interop?

    Hi,
    Kindly help me in getting the total number of pages from a .doc file not .docx file using C#. I know how to get by using Office interop but I do not want to use Office interop.
    So, without office automation in C# let me know how to get the total number of pages from a .doc file.
    Regards,
    Ashok

    Hi Ashok,
    >> I know how to get by using Office interop but I do not want to use Office interop
    Could you tell us why you don't want to use Office interop?
    As far as I know, this is the easiest way to achieve.Hmmm,this is my answer
    http://msdn.microsoft.com/en-us/library/microsoft.office.interop.word.pagenumbers.startingnumber(v=office.14).aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a question about the new version of itunes. in the old version at the bottom of the sceen it display the total number of media and the size of the files. how can i get the new version to diplay this?

    in the old version at the bottom of the sceen it displayed the total number of media and the size of the files. how can i get the new version to diplay this?

    You're welcome. It was frustrating for me as well until I stumbled across "the fix"

  • Total number of records in a file

    hello experts,
    I am getting a file to upload the data.... This file is containing one header record one trailor record and remaining data records...
    how to read all the data into one internal table along with header and tralor record.
    Because i have to control record validation. In the trailer record the amount what they were giving is the total number of records along with header and trailor
    can anyone guide me how to do that
    SRI

    If thats an excel file then you can use function module
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_fnam
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 100
          i_end_row               = 30000
        TABLES
          intern                  = iexcel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE: / 'EXCEL UPLOAD FAILED ', p_fnam, sy-subrc.
        STOP.
      ENDIF.
    Instead of passing 1 in i_begin_row you, if you know how many lines the header is going to be then you can ignore those lines and pass the number of the row which has the first data record. You can hard code the header because this is giong to constant.
    Just a suggestion. Hope this works for you.
    Thanks.
    Message was edited by:
            mg s

  • How do I let lightroom show the actrual number of files in a map and not a number including the total of all submaps?

    How do I let lightroom show the actrual number of files in a map and not a number including the total of all submaps?

    If by "map" you mean directory or folder, in the Library menu there is a toggle for "show photos in subfolders".

  • After formatting Western Digital 4 TB hard drive to Mac OS   extended (Journaled) 1.11 TB of space has been used. Number of folders 11 number of files 59.  I am running lion  Is this a normal use of space?

    After formatting Western Digital 4 TB hard drive to Mac OS  extended (Journaled), 1.11 TB of space has been used.
    Number of folders 11. Number of files 59.
    I am running lion10.7
    Is this a normal use of space?

    Wait.... can the BIOS on your machine support greater than 3TB?
    Most cannot.
    4TB drives, from what I've read, require an all new drive controller. As older drive controllers would max out at 3TB's.

  • Total number of items in a folder

    How do I find out the total number of items there are in a folder (including files within sub-folders)? Get info will show me the total size, but I'm sure there's a way of doing this but I can't remember how.
    Thanks - Neil
    G5 iMac 17 Rev. A/Superdrive/BT/768MB   Mac OS X (10.3.9)   1GB iPod Shuffle/20GB iPod with Colour Display

    Use the options in this thread.
    (11920)

  • Files & Folders disappeared from the desktop!

    I have a number of files and folders that just simply disappeared from my desktop. I have tried all of the "normal" recovery methods (restart, repair permissions, run Disk Warrrior and replace the directory, run Data Rescue II) but I find NOTHING!
    I am totally baffled by this and cannot seem to find anyone who can give me an answer. HELP!
    I was hoping the Apple board would have enough "experts" to help me find my missing data......

    I have exactly the same problem, and I've already asked for some help on this boards but with no luck, and 10.4.9 didn't help, nor did the new bootcamp beta.
    From what I understand this seems to happen only on Intel Macs that uses Bootcamp. When you boot back to OS X after using Windows, your desktop is like a black hole and everything you put in there just seems to disappear.
    If you look for the missing file with Spotlight, it will find it, and if you click on it in the Spotlight window, the file will appear magically on your desktop.
    So basically the files are there but the desktop is just not showing them.

  • Played with files/folders when trying to add 2nd library all messed up now.

    I know there are many threads on this subject. First when I got my new laptop I transfered my library. It worked but the folder listings looked different/odd to me. Now husband decided he wanted a nano and I tried to add 2nd library to my laptop. I think I followed the directions but apparently did not. I also tried to move and drag some files/folders together because I have so many folders. There are multiple itunes, itunes music, ipod ?files/folders. I have the same problem as others ! shows up when I tried to play any songs. Find in other location. I found them but then what do I do? I barely know computer basics so any help needs to be very, very basic. How should I proceed? How should my folders look? Music-> iTunes->iPod-> Album Artwork->iTunes-> iTunes music etc. If I can't get itunes to work should I delete all music from computer and remove itunes and start over? Frankly I do not know why they don't have a video to follow to help computer stupid people like me. By the number of posts you would think hey make videos to cover these problems. My iPod 80GB is fine with everything present. I have been good about keeping back ups on disks. My music library contains only 140 music purchases and has a total of 900 songs, album artwork, and 25 photos. Any help would be great there is a lot of stress in the house about this subject. Thank you all for your time.

    Mind if I wait around and see if you get an answer, cibt?
    I can't fathom the iTs way of doing things - but not quite doing things. Are files Windows files of are they iTs? What job does the .itl file have? Is iTs just a series of pointers to (real) Windows files?
    Can files be moved around Windows folders and be recognised by iTs, or is iTs a file manager too?
    It's a dog's breakfast to me. Too clever by half. An entire system within another entire system. I'll be waiting..

  • Total Number of Megs in Pictures

    How can I find out what the total number of megs are used in Finder/Pictures including folders as well as individual photos?
    Thanks for your help and suggestions.
    Vernon

    Select a file or folder of files and Press COMMAND-I to open the Get Info window. The size of the file or folder is displayed in the top area of the window.
    In any Finder listing of files the size of each file is under the Size header of the window.

  • Need to Find Total number of InfoPart form in our Web application

    Hello,
    We have to find total number of Infopath forms in our web application. IS there any Power sheell Scripts or anuthing which can output the Infopath Forms location and file count .
    Thanks
    Kundan

    How about something like:
    Get-SPWebApplication http://yourWebAppUrl |
    Get-SPSite -Limit All |
    Get-SPWeb -Limit All |
    Select -ExpandProperty Lists |
    Where { $_.GetType().Name -eq "SPDocumentLibrary" -AND -NOT $_.Hidden } |
    Select -ExpandProperty Items |
    Where { $_.Name -LIKE "*.xsn" }
    Select {$_.Web.Url}, Url
    The above will list all of the files. Do you need counts by library, by site or other?
    Mike Smith TechTrainingNotes.blogspot.com

Maybe you are looking for

  • Horrible Flaky Mail Repeated Crashes In MacOS Yosemite

    One can expect some growing pains with an new OS or upgrade. But the sheer number of people having the multiple types of Mail crashes in Yosemite speaks volumes about the poor testing done on this critical app. I have followed all the steps different

  • Will a 3 hour long download of an upgrade be cancelled if the Mac goes to sleep mode during the download process?

    I have a Mac 10.10.1 27 in. monitor 2009 late Memory 4GB 1067 MHz DDR3 To download the above OS upgrade (10.1.1), because I noticed the long time needed to download, I clicked on system preferences, Energy saver, Computer sleep/never, Display sleep/1

  • Create BOM with item category L

    Hi, I am facing an issue while going to create BOM with item category L. System shows material type can not be used with item category L for that particular plant. Please help... Thanks, Rampreet Jaiswal Edited by: Csaba Szommer on Jan 11, 2012 12:21

  • Log data when signal is for at least one hour stable

    All, can you please help me out with the following; I have data to log when one signal is for at least one hour between two values. If this is the case, all the data can be kept. If this is not the case, let's say after 30min that one signal is out o

  • Using iPod on two computers: one with Windows and one on a Mac

    I have a video iPod that I have used with iTunes on a Dell PC, but I recently bought a MacBook and want to still use this iPod on the new computer. I have the iPod set to "manually update music and videos," so it won't erase all my music. Is it possi