Applescript for finding and moving several files?

Joined
Oct 13, 2011
Messages
15
Reaction score
0
Points
1
All over my Mac's hard drive I have several files that begin with a 5 digit number in many different folders, i.e. "13345_car030.mov" and "15688_sidewalk060.mov"

Is there a way I can use Applescript or Automator to find every file that begins with file name "XXXXX" (where "XXXXX" is one of several hundred 5-digit numbers in a list- which I already have available). Then I would need it to move all those files to a specified folder. I wouldn't want it to copy and paste, but rather move, since I'm really just trying to wipe them off my Mac eventually.

The list of 5-digit numbers is over a thousand, and it's in .txt format (one per line). I could easily convert that to another list/file type if that would make the applescript run better. The list looks something like this:

14452
12238
13345
15688
11920
etc.

Any thoughts from an Applescript-savy individual?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top