A general question re: issues attaching one script to several folders

I have a script that just does one thing, it adds a user to a queue after files have been received in a folder. It verifies that certain files and folders are present and either creates a new text file to keep track of the queue order or if one already exists, adds the user to the end of it. Pretty simple.

The problem is that while testing it with multiple users (as there will be when I get it in place) I am finding that the order of the users written to the queue file is are being added in LIFO (last in, first out) order. I have tried it several times and all with the same result. And to be honest the only time this would even become an issue is when multiple users drop files into their folders within about 8 or so seconds of each other, but it is a problem in as far as I can’t understand why this is happening.

Is there an issue arising because I have a single script servicing multiple user folders? If that is the case and to correct it I create a script to automatically generate an individual script for each user, will there not be conflicts when multiple scripts try to open the same text file for reading or writing?


Maybe if I just ask the question - Does applescript run multiple script instance requests in a last in first out order?

Anyone, Bueller, Bueller… :confused: