Folder, Subfolder List

I have looked everywhere, but can't find exactly what I'm looking for. I need a script that will scan and make a list of all subfolders within a folder. I don't need the path or anything like that. Just the names of the subfolders, and the subfolders in the subfolders. Is this doable? I would like the list to be created in iA Writer, TextEdit, or Word. Thanks for any help.

you want something like this:
tell application "Finder"
          set folderNames to name of every folder of entire contents of folder "HD:path:to:folder"
end tell
where HD is the name of the external drive as it shows up on the desktop.  If there are a lot of items in the folder, you may need to use a 'with timeout' block to keep the script from timing out on you. 

Similar Messages

  • Need Folder/Subfolder Listing

    Hello
    I have a hierarchy of a few dozen folders/subfolders, containing a total of a few hundred word processing documents, on an eMac OS 9.2. I need to generate a text file with each line representing the full path to each document. The equivalent PC command is:
    dir /b /s > dir.txt
    How can I best accomplish this task?
    Thank you,
    Jeff Bowman

    That worked perfectly, thank you.
    Also, I'd like to comment on the nature of your helpful and neighborly reply. I'm new to Mac, and if this is my first impression of the folks over here, I'm impressed.
    I'm imagining something akin to the small and tight-knit Microsoft Visual FoxPro programming community, of which I used to be a part. Fiercely zealous and uncommonly kind to one another, they're something to behold.
    Alas, however, when I switched to .NET programming my old friends wouldn't talk to me anymore.
    But that's not my point. My point is that I think I can enjoy working with this Macintosh platform and its people, if I'm correct in my suspicions. I don't think I could deliver myself to the advocacy altar one way or the other, but I do appreciate learning new ways to accomplish tasks at hand.
    So thanks again, and see you down the trail!
    p.s. Upon further investigation I find that I do indeed have OS X installed.

  • When expanding folder in list view, finder always go to top. How to stop it?

    How to make finder not going to top back again whenever expanding a folder in list view? It just like clicking go to top on a website. i have a lot of subfolder, but when i expand it, finder show back the top list folder(zuupp to the top, grrr!!!), it so annoying to scroll back down just to get back where the last folder expand.

    18 months later someone finally responds to you.  I dislike this behavior very much and cannot find a workaround.  The current push by Aple is to make the smaller devices more accessible which is radcially compromising the desktop experience.  I asume you have updated to Mavericks by now.  The auto-sizing columns remains an issue as well.  If this is driving you bonkers too.  Use TAG View and the auto resize to file name length returns.

  • How do I manage photos using a folder - subfolder type structure?

    How do I manage photos using a folder - subfolder type structure as I have done previously within Windows? For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos. Can I do this in iPhoto?

    For example, my photos were stored with a folder for each year and sub-folders for each month whicheach  held the photos
    Why bother?
    Check out the search box at the bottom of the Window. (Click on the Magnifying glass, it opens it) Now click on the mgnifying glass in the search box) and select 'Date'. Now you can find all the photos from any day, month or year. If you want to find the photos from a range - say a paticular week - then you can do that with a Smart Album.
    Organising photos by date means you have to remember the date the shot was taken, and after a while, and after a few thousand shots, this gets harder and harder to do, so you spend more and more time rooting through folders.
    iPhoto offers a range of organising tools and each offers more possibilites to quickly find the shot you're looking for. For instance:
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 45k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • HT204655 how do i choose a photos folder for my screen saver.  iPhoto used to be listed as a dropdown choice.  now only folder is listed.

    how do i choose a photos folder for my screen saver.  iPhoto used to be listed as a dropdown choice.  now only folder is listed.

    You cannot take a folder out of the Trash to your Desktop without erasing the one on the Desktop. You need to first change the name of the folder on the Desktop. Or you can open the folder that's in the Trash and drag the files onto the Desktop assuming there aren't too many of them.
    But if you have a duplicate on the Desktop why do you need to remove the one that's in the Trash?
    If you feel you must take the folder out of the Trash, then you need to rename the duplicate that's on your Desktop.
    If you wish to put the folder back where it was when you deleted it, then open the Trash window, select the folder, then CTRL- or RIGHT-click and select "Put Back" from the context menu.

  • Missing folder in list view. Mac OSX 10.4.11

    I have an external Firewire Hard Drive with 10 folders on it.
    One of the folders contains around 100GB of video files.
    This folder does not appear in the list view.
    All the other folders appear as normal.
    In ccon or column view the folder is there.
    Is this a known bug?

    I've never seen it before. Not sure I have Folders over 100GB though. Will try/look.

  • Not able to create new folder in list/library sharepoint 2013 foundation

    I am not able to create new folder in library and also not able to edit existing list item
    Below is the error:
    Getting Error Message for Exception 
              System.Web.HttpUnhandledException (0x80004005): Exception of type 
              'System.Web.HttpUnhandledException' was thrown. ---> 
              System.NullReferenceException: Object reference not set to an 
              instance of an object.     at 
              Microsoft.SharePoint.WebPartPages.ListFormWebPart.EnsureList()     
              at Microsoft.SharePoint.WebPartPages.ListFormWebPart.EnsureListAndFor
              m()     at 
              Microsoft.SharePoint.WebPartPages.ListFormWebPart.UseLegacyForm()    
               at Microsoft.SharePoint.WebPartPages.ListFormWebPart.CreateChildCont
              rols()     at System.Web.UI.Control.EnsureChildControls()     at 
              Microsoft.SharePoint.WebPartPages.WebPart.get_WebPartMenu()     at Mi
              crosoft.SharePoint.WebPartPages.ListFormWebPart.CreateWebPartMenu()  
                 at Microsoft.SharePoint.WebPartPages.ListFormWebPart.OnLoad(Ev...
    Please help.It happens only on few sub sites

    Hi V_K04,
    You said that it happened only on few sub sites, whether this issue occurred on some subsites, and some subsite worked well.
    Please check whether there are some differences between the subsites that worked well and the problematic subsites. 
    Whether this issue occurred on all libraries and lists on problematic subsites.
    Whether there are some customizations in these problematic libraries and lists.
    Please create a new library and a new list, test again, compare the result.
    BestRegards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Windows 7 with Firefox vers 24.0. Every website I go to has bookmark already. Edit Bookmark shows it nothing close to page title and the folder it lists.

    The star I would usually double click to add a bookmark is already there with some wrong title that has nothing to do with title of website at top right. It also is in various folders I have.
    Only way to fix each one is to delete title listed and type in correct title of page and select folder I want. Before recent auto update to version 24.0 my bookmarks worked like usually do-supposed to-no auto bookmark until I tell it I want to make it a bookmark.
    I went to help and tried what it said about going to History and clearing all my history-all boxed checked. I then restarted my computer and no change.

    I followed your suggestions backing up a copy of my Bookmarks from Show All Bookmarks. Then I deleted the suggested Firefox files and restarted my computer. I imported my Firefox backed up bookmarks and Firefox was once again working like it was supposed to.
    Thank you for all your help.

  • Finder: Cannot open a certain folder in list or coverflow view (OS9 folder, maybe polluted legacy?)

    PROBLEM SUMMARY:
    I observe a very strange Finder bug (already in 10.5, and still now in 10.6), which only occurs within one specific folder with certain Finder view modes (list, coverflow).
    ATTEMPTED SOLUTIONS & SPECULATION:
    I already tried everything to fix it, both by GUI and CLI means, such as recursively setting file/folder permissions to default values, erasing .DS_Store and Icon files, etc, but nothing helped so far. The troubling folder and its contents (files and subfolders) is quite old, created still while OS Classic days, maybe it contains some "bad legacy / leftovers", like deprecated filesystem flags or resource forks, which cause the trouble.
    PROBLEM DETAILS:
    This is the directory structure:
    ~/Documents/Songs:
       /Composing
       /Final
       /Patches
       /Web
    All folders can be accessed in any view mode without any troubles, except "Composing".
    If the parent folder "Songs" is set to icon or column view mode, then "Composing" can be opened.
    But in list view (my default view), or coverflow, the opening action, regardless wether via mouse double click or keystroke CMD-ArrowDown, causes no update of the window content. The window content remains in a flawed look and responseless state, only closing or using the return-navigation on the toolbar UI area puts the window content into a correct and reactable state again, or opening a new window and navigating to "Songs" again.
    The time-correlating message to this error in the Console.app log reads:
    Finder *** -[NSCFArray insertObject:atIndex:]: index (9) beyond bounds (9)
    Interestingly: If you are within "Songs" using the list view, collapsing the folder "Composing" via the triangle symbol successfully renders the folders content, and you can navigate further down in the hierarchy with the collapsing method, and even double-click subfolders, which then open normally in list view. Just "Composing" itself shows this mysterious bug.

    Maybe some of the invisible .DS_Store files in your folders are corrupt.
    Launch your Terminal and paste the blue code below into it.
    Press Return and type in your password - press Return again and wait for the word 'done.' to appear.
    Then quit the Terminal.
    sudo find / -name \.DS_Store -exec rm -fP {} \;;echo done.
    Next, relaunch the Finder - press Command Option - click and hold down the Finder in your Dock and select Relaunch.
    Good luck,
    Tom

  • How to find the Size of a Folder &also list the sub folder and files in it

    In my program I want to know the size of a folder . The input given is the path of the folder and the ouptut should be the list of files and subfolders with their size. What is the function we have to use for this?
    Thank you

    class: file
    method: listFiles() - list all files of the dir referenced by the file object
    method: length() - give the size of the file referenced by the file object ; you have to call this method on all file of the dir to make the sum and have the dir size

  • PDA Folder Directory Listing

    Hello List,
    In an attempt to minimize typing for the PDA User, I would like to show a list of files located in a particular folder or let them select a file name while browsing.
    I know how to accomplish this using LabVIEW; however, the PDA Module does not seem to support List.VI and some of the other "browsing" tools. In fact, I would be able to capature the file name if I could force some type of a browse event similar to what occurs using the simple "File Dialog" in LabVIEW.
    My objective is to let them select files (about 15 characters in length) without having to manually enter them with stylus, which can be time consuming.

    It can be done through API calls, however, I tried several times to build a DLL out of it for PDA but couldn't get it to work (compile). NI really need to simplify the process to call native API functions.
    -Joe

  • PRINTING A FOLDER CONTENTS LIST?

    I'm trying to print the contents list of a folder as we used to be able to do in system 9. I'm aware of dragging the folder onto my printer icon that I've placed in my menu bar. That works fine but only shows me the folders contained within the main folder. It will list the contents of any sub folders within the main folder even if I open these folders in the finder to reveal contents on the screen. Am I missing something or is doing a screengrab the only way to get a printed list of a folder's contents?
    Thanks,
    Bruce

    There's a free utility Print Window at versiontracker.com.
    Or, drop the folder on TextWrangler (also freeware) and print from there.

  • When I create a bookmark with Command-D, I am unable to save it into a folder -- the list of folders does not appear.

    When I hit command-D, the "page bookmarked" window appears as usual, but the area where you normally see a list of bookmark folders is empty.
    When I look at all my bookmarks (Bookmarks >Organize Bookmarks), the folder called "All Bookmarks" appears as an ordinary folder without the green-book-with-a-star icon icon.
    The folder with that unique green book icon is present, but is within the Bookmarks Menu folder. And it is empty.

    If that isn't clear, I can post a screenshot.
    Steve

  • Folder Content Listed in Content Area

    I understand that this is an issue that was fixed from a previous version, but I will give it a shot anyway.
    I would like to direct the folder content to open in the "content" area NOT in the portlet when I select a folder, but apparently this was something that was fixed in 3.0.8. Does anyone know if there is a way to get it back the old way?

    Hi Dharam,
    This can be achieved by selecting the object types (eg Folders, Documents, Bookmarks, Notes etc) that you want to use in a collaboration.
    If you are a cFolders administrator, you can define which object types are to be used across the entire system on the General tab page under cFolders Administration.
    If you are not a cFolders administrator but have administration authorization for a collaboration, you can change this default setting for the relevant collaboration. To do this, proceed as follows:
    Go to the collaboration detail screen and choose Object Types. A list of all object types appears. By default, the objects that have been selected under cFolders Administration are already selected. You can select the objects that have not been selected under cFolders Administration as required.
    Change this selection if necessary. You can select exactly those object types that you want to be used in your collaboration. The system-wide default is not affected by this.
    Regards
    Deepak

  • Recent media folder/subfolder behavior

    I've just noticed that iTunes is placing media files differently in my media folder (on a NAS drive) than it used to. It's hard to say when it started, but things I imported before the holidays seem to be ok.
    First, imported music is no longer put in the Music folder—artist and album subfolders are created, but they are put at the "root" of the media folder instead (same level as the Music folder).
    Second, movie files used to be put each in a subfolder under Movies whose folder name was the movie title (e.g. Movies > 300 > 300.m4v), but now, imported files are put directly in the Movie folder (e.g., Movies > 300.m4v).
    The strangest thing I've noticed is that after watching something I imported years ago (a Louis CK special) on my Apple TV v2, the m4v file is now up where new imports are, and its old subfolder is gone.
    Is anyone else experiencing anything like this? I've restarted iTunes, my Mac, and the NAS, with no change. Thanks in advance.

    Arch Alcantara wrote:
    Ok, thanks. I did a search on media folder and subfolder, file location, and the like, and didn't see any relevant results. Thanks for the update.
    Here are a couple of folks with the same issue:
    https://discussions.apple.com/message/24505055#24505055
    https://discussions.apple.com/message/24559922#24559922
    Hopefully Chris's suggestion will work.

Maybe you are looking for

  • Why won't my OS 10.6.8  respond to HP Officeject 4620 print or scan.

    I upgraded my MacBook to OS 10.6.8 and purchased a HP Officeject 4620 all-in-one printer/scanner.  Had to return the printer because it wouldn't communicate with my MacBook.   Received a replacement printer and am having the same problems with it.  I

  • Replace " from the string

    Hi,  I am not able to remove " (double quotes) from a sting. I am using replace function in webi but getting error. example sting: Yellow stone"discovery" i have tried like this: =replace([varible];""";"")  but getting error. can anybody help me in r

  • Security Update for exchange server 2013SP1 KB3011140 Stops all services and failes to install

    Hi All, Over the past 2 days this update has tried to run on the server in the evening but ends up failing. When it fails it is causing all of our exchange services to stop working and when we try to check e-mails the following day we find out the e-

  • How can I create my own TopLink ADF datacontrol in JDeveloper?

    To create your own TopLink ADF datacontrol in JDeveloper follow these steps: Step 1. Add “ADF TopLink Runtime” library to your project Step 2. Extend oracle.adf.model.generic.toplink.ToplinkDataControl with new class (e.g. MyToplinkDataControl) impor

  • Show all devices that do not have an inventory

    How can I run a report or show all devices that do not have an inventory? We have some devices that do not initially upload or run their first inventory. If I manually run it or send it to run from the console it works but I need to know which pcs to