Re: Finder Network File Copy Timeout
Re: Finder Network File Copy Timeout
- Subject: Re: Finder Network File Copy Timeout
- From: Laine Lee <email@hidden>
- Date: Wed, 02 Jul 2008 11:11:54 -0500
- Thread-topic: Finder Network File Copy Timeout
On 7/1/08 9:40 AM, "Damon Casey" <email@hidden> wrote:
>
> 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,
Here's an offhand idea. Turn the script into an application and see if the
same thing happens when you open it in Finder. If the new app's job is
completed successfully, then make FileMaker run a script that launches the
app you just created instead of the original script.
--
Laine Lee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden