Jon- Thursday, June 2, 2005, 5:43:12 AM, you wrote: Yet more clues: You use h and w but never initialize them. If you declare your variables and turn on Variable Checking (or even better, Variable checking by default) then the Script Editor will catch some of these for you before the stack has a chance to crash. -- -Mark Wieder mwieder at ahsoftware.net