Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Extracting Files from Nested Folders?

Extracting Files from Nested Folders?
Thread Tools
KeyLimePi
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Feb 4, 2004, 03:36 PM
 
Here's an odd question.

I have a folder left over from an abandoned web project that contains more than 35 other folders, and inside each of those is anywhere between two and five other folders. In each of these is a variety of files, mostly HTML and JPG files, but also several SWFs. There are probably more than than 200 SWFs in all.

My question is this: what is the simpliest way to move all the SWF files into one folder? I don't care about the other stuff and plan on deleting it. The only thing I really want to preserve is the .swf files.

Any advice is appreciated (keep in mind I'm one of those folks that has never even launched the Terminal).
     
Toyin
Mac Elite
Join Date: Nov 2000
Location: Boston
Status: Offline
Reply With Quote
Feb 4, 2004, 03:43 PM
 
Open a finder window
Select the root folder of the website
In the search field, type .swf
All the files below the root folder with .swf will appear.
Select all the files and move them to a new folder

Should take all of 10 seconds
-Toyin
13" MBA 1.8ghz i7
"It's all about the rims that ya got, and the rims that ya coulda had"
S.T. 1995
     
KeyLimePi  (op)
Mac Elite
Join Date: Sep 2000
Location: Baltimore
Status: Offline
Reply With Quote
Feb 4, 2004, 04:54 PM
 
Dang. See, this is why I post here. I knew there was a smart way to do it...I just wasn't smart enough to figure it out.

Many thanks.
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Feb 7, 2004, 04:15 AM
 
FYI, using AppleScript:

Code:
tell application "Finder" set the source_folder to (choose folder with prompt "Folder containing items:") set the destination_folder to (choose folder with prompt "Folder to receive items:") move (every item of the entire contents of the source_folder whose name extension is "swf") to the destination_folder with replacing end tell
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,