Thanks for the response Jay!
Unfortunately, that didn't fix it for me.
The first thing I did was to try the parenthetical coercion.
I did a test though, and I think maybe I can isolate the problem more specifically.
As an embedded Applescript, the code works fine. And it also works fine in AppleScript Editor. The only time it doesn't work is if I save it as a scpt file and have it run inside Indigo as a file. Maybe you can confirm this?
Thanks for the notes. Following the notes on the wiki, I actually have all my code in "try" and "with timeout" blocks. Just to keep things brief for my post, I decided to not include that.