Any program which can auto-select files from a list?


Status
Not open for further replies.

behyx

Senior Member
Jun 15, 2002
2,642
0
0
35
SG
www.danielbeh.com
#1
Not sure if this is the right forum to post this...

Let say I have a folder which contains photos with ascending numbers 001.jpg , 002.jpg , 003.jpg , .....

And I have a list in word format be it txt, rtf or doc format for eg: 003 , 029 , 042, ....

Is there any program which can 'read' the filenames in the list, and help me select the files in the photos folder (or copy it into another folder?).

Preferably a Mac program, but i don't mind a PC program.

Currently I'm going through manual selection from the photos folder which I want to eliminate because it's very time consuming..

TIA!
 

2evans

New Member
Nov 8, 2007
1,862
0
0
#2
You could write up a shell script to do this, but you probably knew this already. :)

Doing a search via google came up with not that many results. It does seem that modifying the batch script example from the link below, could give you something that would fill your needs.

http://www.computing.net/answers/programming/xp-batch-script-to-rename-files/14608.html
 

Last edited:
Jul 5, 2007
1,199
0
0
AMK
#3
I do not know any tools but you can try this.

- In Excel spreadsheet: column A= copy, column B=filename, column C= target location.
- Then copy and past to as text in a run.bat file.

E.g
copy img001.jpg c:\temp\myphoto\
copy img010.jpg c:\temp\myphoto\
 

rendition

Senior Member
Jan 26, 2008
1,974
0
36
Singapore
www.VisualVerve.sg
#4
Amazing... LOL. We're lucky to have such people like spheredome here. I dun know if it works but it does sound like it will... just that I don't use Windows.
 

varf

New Member
Nov 14, 2003
1,092
4
0
Visit site
#7
assuming you are comfortable with the Terminal, and your selection file is named select.txt and has just one number per line, the following command should do the trick:

  • while read n; do mv from_folder/$n.jpg to_folder/; done < select.txt
of course, you'll have to replace from_folder and to_folder with the appropriate paths - which you can get by dragging each actual folder from Finder straight into the Terminal window. (you can also get the right path to select.txt by dragging that from Finder to Terminal as well!)

the actual command shoud look something like this:

  • while read n; do mv /Users/behyx/photos/$n.jpg /Users/behyx/selects/; done < /Users/behyx/select.txt

hope that helps.
 

GavinTing

New Member
Oct 16, 2007
1,298
0
0
26
#8
Why not try to cook something up with Automator?
 

Status
Not open for further replies.
Top Bottom