Finding and moving files in multiple folders

Hi
I am trying to locate and move hundreds of .wav files currently situated in 193 subfolders inside a folder called "ambient". They are mixed with other filetypes. I want to move all these wav files into a new folder called "new ambient" but without any subfolders.
At the moment the only way I can think of doing it is to open each subfolder and move each wav file to the new folder. An earlier task took me hours! Is there anyway in spotlight or finder or any other app I can filter the wav files from inside the ambient folder's subfolders (ignoring the subfolders themselves and other filetypes)  and "apple shift" bulk move them in one go to the new ambient folder? A  simple wav search in finder, which I've tried,  would also catch thousands of other wav files elsewhere on the hard drive, but I can't find a way to search within a specific folder
any help appreciated

You could use a smart folder in Finder.
Open  a Finder window and go to the top level folder where the files are.
Press command -f a Finder search box opens.
What you'll see after the cmd-f the Search: folder should reflect the folder you opened and will search.
Now click the Kind box and in the list that opens select other
In the attribute window that opens search for extension
Choose File extension and click OK.
Back in the Finder window enter wav
All the files under this folder with an extension of wav will appear in the Finder. You could leave the files where they are save this search and always access the wav files from here. It will appear and act as a normal folder. The advantage is that the update of the search is dynamic. If you add more wav files in the future they will show up here automatically.
If you want to create an actual folder to hold these then open a new Finder window and create the new folder. Then select all the files in ths window and drag them to the other.
reagrds

Similar Messages

  • Finding and moving files

    I have an external hard drive that has many folders. Within the folders are scattered movie files. I am looking for a script or a hint that would allow me to to search the external hard drive, locate the files and then copy them to a single folder.
    thanks

    I think that it would be easiest done through the Find function in Finder or spotlight. As an alternative you could use the find command in terminal. Something like this should do the trick:
    find /where/to/search ( -name *.avi -or -name *.mpg ) -exec mv {} /path/to/new/location/ ;
    An AppleScript might be too much work for this job. One can of course wrap the above command with some AppleScript and obtain the location where to start the search and the target folder interactively but I personally would still use the above command for the actual searching and moving.
    Message was edited by: hungryjoe

  • Moving files from multiple folders

    I have just used Techtool Pro 5 to restore animation data files from an unmountable external drive. Every individual frame of a sequence has been put into a seperate folder by Techtool.
    Can I use Automator (or another app) to move each file into one folder.
    There are 5500 folders, so this might take a while manually.

    But unix commands rsync or ditto can do exactly that with a lot more options ???
    So a better question would be "How to use the unix commands rsync or ditto to do *your question*" in the [apple unix forum|http://discussions.apple.com/forum.jspa?forumID=735]
    --Am no expert in Unix or Applescript.--
    --Not too long ago I had the same 'bottleneck' issue with an applescript - activity monitor showing full cpu usage for one of my applescripts.--
    --Then tried to solve the same problem with unix and ruby. Results were stunning.--
    Still I am not complaining about applescript..
    --It helped me learn the limits of Applescript--
    --Hence I tend to use Applescript only for GUI scripting these days - its awesome there,--
    --for text processing and file processing - use a combination of bash and ruby--

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • Picking files from multiple folders based on name send to destination folde

    Hi,
       I want to pick multiple files from multiple folders with one root folder. Based on file name I want to send it to diffirent folders. No need to go for message mapping. Can anyone suggest me.
    Thanks & Regards,
    Prasad Kotla.

    Hi Prasad,
    to pick the files from multiple source directory, can use "Advance Selection for Source File" in Sender CC.
    If you wand to develop a Scenario without Message mapping, develop a scenario as "Sender as Virtual receiver"
    This option is available in Sender agreement, just give the dummy name for Msg Interface and Namespace, Name defined should be same in Rec Agreement.
    Develop only: Sende CC, Receiver CC, SA, RA
    No need to develop ID and RD as no mapping is involved.
    If u want to send the files to different folders of receiver side, just develop the adapter module which changes the directory based on the sender filename.
    If the sender and receiver directory is same than check the "adapter specific Msg Attribute"  and "directory" checkbox in both the sender and receiver CC. in this case no need to develop Custom module for changing the directory. files will be automatically placed in the path they were picked from  sendor directory
    appreciate if useful
    regards,
    chandra shekhar

  • Indexing files in multiple folders

    Dear all,
    I would like to ask is it possible to index files in multiple folders. To my understanding, Oracle Text seems can only create an index for files in a single folder. if this is true , then i think it will restrict us to search for files that have same file name. So I would like to ask if there are any work around to solve this problem.
    Thanks in advance,
    Edward

    Yes you can index files in multiple folders. Either you enter multiple paths in the path variable seperated by colon (:) under UNIX or semicolon(;) under NT.
    The other possibility is to leave the path variable blank but then the column you build the index on needs to store the whole file and pathname.
    Hope this helps
    Joerg

  • I can't seem to open (view) my photos.  I get an error message that says "the file couldn't be opened because you don't have permission to view it. To view or change permission, select the item in the finder and choose File. Get info."

    I can't seem to open (view) my photos.  I get an error message that says "the file couldn't be opened because you don't have permission to view it. To view or change permission, select the item in the finder and choose File. Get info."  I have never had this happen before?  Thanks!

    Try the following:
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - Run Option #1, Repair Permissions.
    OT

  • I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP?

    I recently had a kernel panic in which I think my hard drive only had so much space left after I ran a bunch of drivers I thought I needed. I uninstalled all and moved files. For some odd reason I'm not getting sound of of my hdtv/monitor.HELP? I uninstalled all the drives and apps I download. I moived files either to trash if not needed, and others to other external drives. I went into disk utility and did a repair disk permission and verify disk. Clean out junk files. Now my hdtv/monitor does not give me any sound, nor does my mac mini. Can someone please tell me what to do?

    What drivers?

  • Cannot reinstate catalog after returning PC (Windows 7) to factory settings (because of worm infection). Catalog was backed up on external drive but not using PSE backup facility. Cannot find and *.tly file. Is this hopeless?

    Cannot reinstate catalog after returning PC (Windows 7) to factory settings (because of worm infection). Catalog was backed up on external drive but not using PSE backup facility. Cannot find and *.tly file. Is this hopeless?

    If you made backups of all of your photos and your catalog file using some third-party method (i.e. not using the PSE catalog backup command), then you should be able to restore everything.
    Step 1. Put the photos in the EXACT SAME LOCATION as before. For example, if they were in subfolders of C:\Users\<username>\Documents, then they must go into the exact same subfolders of C:\Users\<username>\Documents.
    Step 2. Move the catalog file to wherever you want it to be, and then double-click on it.

  • I can not open documents I get a message that says To view or change permissions, select the item in the Finder and choose File Get Info.  help

    I have a mac with os X.  I have saved documents and photos on my computer and am now not able to open them.  I get a message that tells To view or change permissions, select the item in the Finder and choose File > Get Info.  I do that and it is not locked.  confused.  help

    In the Info window it's this:
    Do you have read and write privileges?

  • Aborting index build. Too many errors with finding and copying files ...

    Hi dears,
    I'm using UCM 11g.
    I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
    Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
    Can anybody help me about this problem?
    Helps will be appreciated.
    Erdo
    Edited by: erdo on 28.Mar.2013 11:11

    Read this: error in Collection Rebuild Cycle
    and maybe also UCM Indexer - Collection Rebuild Cycle errorring out

  • Find and replace text in multiple Photoshop files?

    Hi there,
    Let us say I have six Photoshop files: 1.psd, 2.psd, ..., 6.psd. All of these files contain the word “LoremIpsum” in random text layers, within each document. Is there a way I can search for “LoremIpsum” in all documents and replace it with “Dolor Sit Amet”, all in one go? This is just an example, I need to replace various words, not just one.
    I have tried "batch find and replace" software (including powerful tools like Power Grep) but they do not work with psd files… Is there a javascript of external plugin for this kind of task?
    Thanks!

    You’re welcome, advice given here is free.
    If you want to donate something nonetheless you could do so over at
    http://ps-scripts.com/bb/
    Many of the same people used to contribute there as here and I for one have benefitted considerably from their generous advice on Scripting issues.
    A Script can read (or create) txt files, but I do not have a lot of experience with this.
    This might work (amend the line »var theTexts = readPref ("….txt", false);« according to your txt-file’s path):
    // replace text elements in type layers;
    // 2013, use it at your own risk;
    #target photoshop
    if (app.documents.length > 0) {
              for (var n = 0; n < app.documents.length; n++) {
                        app.activeDocument = app.documents[n];
                        app.activeDocument.suspendHistory("replace text", "main()")
    // the opertation;
    function main () {
              var myDocument = app.activeDocument;
              var theTexts = readPref ("….txt", false);
              var theArray1 = theTexts.slice(0, Math.round(theTexts.length/2));
              var theArray2 = theTexts.slice(Math.round(theTexts.length/2), theTexts.length);
              alert (theArray1.join("\n")+"\n\n\n"+theArray2.join("\n"))
              for (var b = 0; b < theArray1.length; b++) {
                        replaceText (theArray1[b], theArray2[b])
    ////// reoplace text //////
    function replaceText (replaceThis, replaceWith) {
    // =======================================================
    var idreplace = stringIDToTypeID( "replace" );
        var desc22 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idPrpr = charIDToTypeID( "Prpr" );
            var idreplace = stringIDToTypeID( "replace" );
            ref3.putProperty( idPrpr, idreplace );
            var idTxLr = charIDToTypeID( "TxLr" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idAl = charIDToTypeID( "Al  " );
            ref3.putEnumerated( idTxLr, idOrdn, idAl );
        desc22.putReference( idnull, ref3 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc23 = new ActionDescriptor();
            var idfind = stringIDToTypeID( "find" );
            desc23.putString( idfind, replaceThis );
            var idreplace = stringIDToTypeID( "replace" );
            desc23.putString( idreplace, replaceWith );
            var idcheckAll = stringIDToTypeID( "checkAll" );
            desc23.putBoolean( idcheckAll, true );
            var idFwd = charIDToTypeID( "Fwd " );
            desc23.putBoolean( idFwd, true );
            var idcaseSensitive = stringIDToTypeID( "caseSensitive" );
            desc23.putBoolean( idcaseSensitive, false );
            var idwholeWord = stringIDToTypeID( "wholeWord" );
            desc23.putBoolean( idwholeWord, false );
            var idignoreAccents = stringIDToTypeID( "ignoreAccents" );
            desc23.putBoolean( idignoreAccents, true );
        var idfindReplace = stringIDToTypeID( "findReplace" );
        desc22.putObject( idUsng, idfindReplace, desc23 );
    executeAction( idreplace, desc22, DialogModes.NO );
    ////// read prefs file //////
    function readPref (thePath, binary) {
      if (File(thePath).exists == true) {
        var file = File(thePath);
        file.open("r");
        if (binary == true) {file.encoding= 'BINARY'};
        var theText = file.read();
        file.close();
        return String(theText).split(",")
    In this case the comma is used to split the text into Strings in Arrays, if your search/replace texts include commas you could use something else, I guess.

  • Is there a way of selecting all files within multiple folders?

    Let's say I have a folder called 'text books' and within that folder I have 100 more folders named by author.  Inside the folders are .txt files of their work.  Is there any way I can select all the .txt docs and paste them in one big folder?  In other words, is there a way of removing all the sub-folders and putting all the .txt files together in one place?
    regards
    Rob

    Thanks Niel.  Worked a treat!  Took me a short while to figure out how to get it to run in the directory I wanted it to (as the file was also on NAS)  as I have never used AppleSript before.
    So, for posterity, and if anyone else is interested in trying to do this, here is my final script:
    set pa to "/Volumes/Public/etc - whatever your path is"
    set aspa to POSIX file pa
    set tpa to "/Volumes/Public/ directory you are moving them to"
    set as2pa to POSIX file tpa
    tell application "Finder"
      move every file of entire contents of folder aspa to folder as2pa
    end tell

  • Applescript to email files from multiple folders

    I have a dictaphone that stores recordings in 5 folders. When I connect the dictaphone, it downloads all recordings to respective Folders A through to E. I need the script/s to check each folder for files and automatically email them off then move them to a sent folder. Each folder can contain one or more recordings.
    What I find with my script below is that when I apply it to each folder, one of two things will happen. Either all the files from one folder will get sent and moved or the first file from each folder gets sent and moved. Everything else stays where it is.
    I'm beginning to think the trigger "on adding folder items" might not be the best way to achieve this. Perhaps I should link it to checking for the dictaphone being plugged in then scan all subfolders for files.
    [applescript]
    on adding folder items to themailfolder after receiving theAddedItems
    repeat with eachitem in theAddedItems
    tell application "Microsoft Entourage"
    activate
    set newmessage to make new draft window with properties {to recipients:"[email protected]", subject:"My Files", attachment:{file:eachitem}}
    send newmessage
    tell application "Finder"
    move eachitem to "Macintosh HD:Users:admin:documents:myfiles:sent"
    end tell
    end tell
    end repeat
    end adding folder items to
    [applescript]
    Any input gratefully welcome!
    Message was edited by: K-Lye

    Noted - problem solved here:
    http://bbs.macscripter.net/viewtopic.php?id=26312
    Message was edited by: K-Lye

  • Un-'Locking' multiple files in multiple folders....

    So I just spent 2 hours at the 'Genius' bar manually 'unlocking' hundreds if not thousands of photos in my 'iPhoto' (05) library in order to upgrade to iPhoto '06... apparently, when I imported some pictures from Windows... it brought them in as 'locked' (i.e. when you 'get info...' on a file, and it has the 'Locked' check-box checked), well apparently, in order to upgrade to iPhoto '06, you have to 'unlock' every single file... given the way that iPhoto stores your files, if you've got a few locked, scattered throughout your library, it's going to take a LONG time to find them all and unlock them.
    My question for the Mac OS X specialists at large is, "Is there a way to un-lock multiple files in multiple directories and folders, WITHOUT doing it manually? I can't believe I actually sat at a genius bar and did this for TWO hours. According to my Genius, that was the only way to do it. Are there any other Genius' out there that may have a differing opinion? Keep in mind, he was one of 2 or 3 native english speakers (here in the very busy Shibuya, Tokyo store) any solutions would be appreciated, because it appears I've got multiple files in my MacBook iPhoto library that are 'locked' and I'd like to find an easier way to unlock them.
    FYI, we went to finder and searched for 'other' "Files Write Protected" etc., but we were never able to find ONLY files that are locked... is there a better way? Surely there has to be. Looking forward to learning something new.
    Hal W.
    Tokyo, Japan
    Mac Mini, MacBook 13.3"   Mac OS X (10.4.7)  

    There's also a Terminal command that will work:
    Launch Terminal from your utilities folder, and enter this command:
    find /Users/yourname/Pictures/"iPhoto Library"/ -flags uchg -exec chflags nouchg {} \;
    Be sure you get the "spaces" right, including the ones before and after the curly braces--{}--and there is no space between \; and it should work just fine. You may want to just copy and paste the above into a text program, fill in your short user name, then copy and paste into Terminal. And it must be all one line. After you've entered the command, hit the Return key to execute it. It will look in your iPhoto Library folders for all files that have the locked flag, then change the flag to unlocked.
    Francine
    Francine
    Schwieder

Maybe you are looking for