Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder Network File Copy Timeout




I've searched the archives and MacScripter's forums and haven't found a definitive answer to this.


I have a script that is copying a large number of files to a network volume and it hits the default 2 minute timeout. The script is running in 10.4.11 and is as follows:

set FolderPath to "Macintosh HD:Folder" as alias
set ServerPath to "ServerDrive:ServerFolder" as alias
try
   with timeout of 3600 seconds
      tell application "Finder"
         move FolderPath to ServerPath with replacing
      end tell
   end timeout
on error errMsg number errNum
   if errNum is -1712 then
      display dialog "The copy to the server timed out" buttons {"OK"}
   else
      display dialog errMsg & " " & errNum buttons {"OK"}
   end if
end try

The script is being performed from within FileMaker Pro 9.0v3. The script's with timeout statement is being ignored and I've noted from the AppleScript Language Guide:

A with timeout statement applies only to commands sent to application objects, not to commands sent to the application that is running the script.

Should the with timeout statement be ignored, or am I doing something wrong with this? I've thought about using a shell script to perform the copy although I have zero experience with shell scripting and after a Google search, am finding it difficult to find a resource for scripting this (perhaps my search terms are inappropriate).

Any ideas?

Best regards,
--
Damon Casey
Automating Data Ltd.

FileMaker 9 Certified Developer
FileMaker 8 Certified Developer
FileMaker Business Alliance and TechNet Member

Registered in England no. 4840986
Registered Address: 27 Foots Cray Lane, Sidcup, Kent DA14 4NP.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.