Greg-
You might want to type "put the directory" in the message box and
make sure that the current working directory is what you think it is.
Also, I found this little snippet over at xworlds.com to make it be
what one might expect both when running as a standalone and as a
stack during development. One might want to store the itemDelimiter
before changing it, the reset the itemDelimiter to the stored value,
rahter than assuming that it is a comma, just to make the code more
general.
on preOpenStack
get the effective fileName of this stack
set the itemDelimiter to "/"
put empty into last item of it
set the directory to it
set the itemDelimiter to comma
--put rest of preOpenStack script here
end preOpenStack
-Wil