adding folder items to -> how is "addedItems" defined?


Does someone know how AppleScript defines the “addedItems” on adding folder items to?
Like, what time span is between addedItems 1 and addedItems 2?

I’m trying to process a load of files automatically, I’m using a shell command called by a php script to get it done.
The command throws 2 files at a time (an xml and the actual file) into the folder with the folder-action-script, but it seems like AppleScript thinks that all of them are 1 big “addedItems” if you know what I mean.
So I guess the question is: how long do I have to wait between adding items so AppleScript does them one at a time (or two at a time counting the xml)?

I hope you understand what I mean.

Thanks for any help.

I’m solving the problem by focusing on the xml’s instead of the addedItems. That way I should be able to process all the input-files.
But if someone knows the answer I’m still curious…