Check if a folder action script is running now

Hi all,

does anybody know if it’s possible to check if a folder action script is running? I have a situation where a file is being delivered into a folder that’s running an action and then the second that file has completed copying a second much smaller file is also being delivered to the same folder triggering the action a second time, unfortunately the first triggered folder action hasn’t finished its processing yet. What I would like to do is put a check at the start of the folder action so that if it sees a folder action running with the same name to repeat a delay until that process has finished. I’ve tried getting the name of processes but it didn’t seem to return the name of my script:/