My suggestion would be to use a shell script instead of applescript, and to let cron do the automating, I don't know how much you know about this stuff so I'll keep it simple...
1) Copy this into a plain text file in TextEdit, change the "drive1/2/3" into the names of your drives, and save it as "poll.sh" wherever you want.
Code:
#!/bin/bash
a="/Volumes/drive1/"
b="/Volumes/drive2/"
c="/Volumes/drive3/"
ls $a
ls $b
ls $c
That's basically a script that reads out the names of the files in the root of your drives automatically.
2) Go into the terminal, type:
Code:
sudo cp /the/path/to/poll.sh/ /usr/bin/poll.sh
then
Code:
sudo chmod 777 /usr/bin/poll.sh
that will copy the shell script to a special folder, and set its permissions to be able to be run
3) Again in the terminal, type:
then it'll bring up like a really basic text editor, with a list of jobs that your computer will do automatically, so you don't have to run the script by hand. The columns are tab delimited, so keep that in mind. Make the file look like this (or at least add this line if there are others):
Code:
# The periodic and atrun jobs have moved to launchd jobs
# See /System/Library/LaunchDaemons
#
# minute hour mday month wday who command
*/8 root sh /usr/bin/poll.sh
That will tell your computer that every 8 minutes it should run the script and get a list of the files on your drives.
Do all that and your problem should be solved.