I have a script that I run standalone as well as calling it from a second script.
Part of this first script moves a file into a folder using the following:
tell application "Finder" to move file (f_TBS & filename & ".html") to folder (f_TBS & " HTML:")
When run as a standalone script this works with no problem. When this same script is called from a second script (run script alias FirstScriptName), this same line of code causes an error: -1712 Finder got an error: AppleEvent timed out. However, the file has been moved as requested, but the error is causing the script to abort after the file is moved.
If I bracket the line of code in a try block and display the error message but then let the script continue, I see the message when called from a second script but don't see the message when run standalone.
My questions are:
1) what is causing this error to occur only when the first script is being called from a second script? 2) Is this a known problem? 3) Is there a fix?
I'm running OSX 10.4.11 on a PowerPC G4 Dual 450.
TIA,
Jim Brandt
|