It would be really hard to explain how to do it as it's something you just need to learn and pick up bits of information here and there (I do it mostly from reading other people's code). It's not worth it unless you are really interested. Anyway, here is a script that will make 30 folders labled 1 to 30. The folders will be created in a folder called "somefolder" on your desktop, you can copy the 30 folders to somewhere you like and just trash the "somefolder" when you're done:
Code:
tell application "Finder"
make new folder at desktop with properties {name:"somefolder"}
end tell
set someFolder to (path to desktop as text) & "somefolder:" as alias
tell application "Finder"
repeat with i from 1 to 30
make new folder at someFolder with properties {name:(i as text)}
end repeat
end tell
To actually run the script, Go to your applications folder and look for a folder called applescript, inside there is an app called Script Editor, open it up. Now copy the script I've put here and paste it into the script editor window. Now just click the run button. If you want to keep the script for future use or reference then you can save the script from the File menu like you would any other document.
As for the rest of your problem, I'm afraid it's beyond me at the moment, I can't find the command you need, it might be possible with a command called "offset" but it's not exactly what you'd need and you'd have to write a lot of code to get it to do what you want I think.
One thought has occurred to me though, now that you have the 30 folders, would it be possible to go to the folder where you have all your files and sort them alphabetically? you can then select blocks of files with the same starting name and just drag and drop. It's still a bit of a pain, but its a lot quicker than the initial manual task.
Sorry I can't help any further, maybe someone else can?