Thanks guys - that might be a factor Bob, as the file in question (a large PDF) is being created by the script, so its filesize is definitely changing.
Thanks a lot for the quick replies!! I'll have to wait til Monday to try your suggestions but it looks like I'll be able to manage with it now
