AppleEvent timeout during file move / rename?
AppleEvent timeout during file move / rename?
- Subject: AppleEvent timeout during file move / rename?
- From: "Fox, Christopher B" <email@hidden>
- Date: Fri, 8 Jun 2001 14:09:16 -0400
I'm working on a script that involves moving files back and forth
across our internal network from Macintosh systems to a Unix box running
KAShare. The overall gist of the script involves moving Postscript files to
drop folders on the Unix system, which is running Distiller. The resultant
PDF files are copied back to the Macs.
Inside the script, I am building random filenames for the files to
be moved to the Unix system to avoid name collisions, as we will have a
couple of hundred people possibly using this script, all moving files to the
same drop folders on the Unix side. Some of these Postscript files are
large, and I have encountered an AppleEvent time out during file copies of
~20-30MB files over Airport (and less frequently over 100Mb ethernet) from
the following line:
set the name of (move thisItem to g_serverInbox with replacing) to mapping
of rec
rec is a record that stores the original filename and the newly created
random filename. (mapping is the random filename)
g_serverInbox is the destination drop folder on the Unix machine, so that
PDFs will be created at the appropriate resolution
My theory is that the above line of code does not wait long enough for the
move command to complete before the renaming of the file occurs.
Any ideas on how to handle this situation?
Thanks.
Christopher Fox
Macintosh Support
Capital One
**************************************************************************
The Information transmitted herewith is sensitive information intended only
for use to the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon, this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.