AppleScript Timeout - can't figure out

Much searching. No finding. Problem: AS times out at approximately 13 minutes. I have tried with timeout in iTunes tell block, filemaker tell block, and for the entire script. The last attempt (entire script) lengthened the time from about 5 minutes to the now almost 15 minutes - note that the with timeout clause is (2 * hours) seconds.

From iTunes I get a reference to every track (about 6500). I loop thru each track in order to synchronize data in iTunes with a separate (self-designed) data base built in FileMaker Pro. For each iTunes track I perform a FMP “find” on the values making a unique track. Then, I update any FMP data elements that are different from iTunes.

The script processes about 1100 tracks just fine usually taking between 12 and 15 minutes. Then times out - always when retrieving a cell value from FMP (no pattern on which cell). As I said above, I’ve tried with timeout set at various times and locations in the script - with some help - but no cigar. I’ve not tried multiple with timeout statements. My workaround is to run the script multiple times in 1000 track increments - works, but is cumbersome.

I confess that I don’t fully understand when and how the with timeout clause works although most examples seen in various posts cover the same things I have tried. It behaves as though the Tell for filemaker (which occurs for each iTunes track) is operating under a global or different timer (not one I set). Clearly, my lack of understanding is preventing me from opening the processing window further.

I am happy to provide additional information, including the script (quite long) if this description is not adequate.
Thank you for any insights. It is clear that a number of you are quite expert at scripting.
Karl

Model: Mac Pro quad core, 2.8 mhz
AppleScript: 2.3
Browser: Safari 531.22.7
Operating System: Mac OS X (10.6)

This sounds like the dropped Apple event bug. In 10.6, every 65,XXXth event gets dropped, resulting in a timeout error. Hopefully it will be fixed in 10.6.3.

Thank you. Perhaps I can restore a mere shred of my dignity for the time being knowing that the mighty also have bugs. :slight_smile:
Karl