Automator help...

Discussion in 'Mac Apps and Mac App Store' started by mrgreeneyes, Jul 22, 2017.

  1. mrgreeneyes macrumors 6502

    Joined:
    Oct 7, 2007
    Location:
    Orleans,Canada
    #1
    Hello,

    I have on an external drive a bunch of folders, and in folder contains a movie and .nfo

    I'm trying to create an Automator workflow to automatically remove all the files from each folder and place them in the main folder.
    But I can't seem to get Automator to see what folder I want cleaned up.

    Any ideas?

    Please and thanks
     
  2. cruisin macrumors 6502a

    cruisin

    Joined:
    Apr 1, 2014
    Location:
    Canada
    #2
    Are you handy with terminal? Because this website has a one line command that should work (tested it on a sample bunch of folders): https://www.mjdtech.net/copy-files-from-multiple-directories-easily-os-x-unix-terminal/

    Essentially:
    Code:
    find [path to directory containing files you want to copy] -iname "[types of files you want to move]" -exec cp {} [path to directory you are copying files to] \;
    You have to supply the exact path for the source and destination and you have to use the correct \ character.
     

Share This Page