how to use applescript to select files to send to automator action

I’m hoping the smart people on this forum can help me with this. I would like to know how one would write a script that would be part of an automator workflow that would send specific files to the next action based on the files name. For example if I have the following files named 01.pdf, 02.pdf. 03.pdf, 04.pdf, 05.pdf and I want files 01.pdf, 02.pdf. 03.pdf to go into folder1 and 04.pdf, 05.pdf go into folder2.

Browser: Safari 412
Operating System: Mac OS X (10.4)

Matto,

Sorry for the late reply, but you shouldn’t need applescript. Get Specied Finder Items should work. Just fill in the items in your workflow and they’ll be asked for each run. If your workflow is saved as an app, this will happen invisibly each run.

Kevin

I’ve got the same question -
What’s the syntax to add those files? I’ve tried quotations, slashes, colons, but no luck.
AB