Help with blobbing

view story

http://www.unix.com – I am pretty new to scripting and i was wondering if anyone could help me out. Here is the situation. I am trying to make an action folder that when an image is saved to it, the image is automatically moved to a folder based upon the first 4 or 5 integers of the name. image names come in a few variations for example: 1000.jpg 10000.jpg 10000-v1.jpg 10000-v1 copy.jpg any of the first 4 or 5 integers can be from 0-9. this is the code i came up with so far. Code: tell application "Finder"   do shell script " if [ -f ~/Desktop/filing/1[0-9][0-9][0- (HowTos)