Your best friend for file transfer.

More on Applescript and Mirroring (4 posts)
- Started 14 years ago by jtzeng
- Latest reply 14 years ago from Jim Matthews
-
jtzeng Member
-
Jim Matthews Administrator
Hi,
The answer to 1. and 2. is yes. To do this you would replace each of your mirror statements with something like this:
set done to false
set attempts to 0
repeat while (attempts < 3) and (not done)
try
mirror alias ...
set done to true
end try
set attempts to attempts
end repeatThis code will retry the mirror command up to 3 times.
The answer to 3. is no, there is no way to get a list of files uploaded by a mirror command. Thanks for that suggestion.
You should not see a put error dialog when you are controlling Fetch with an AppleScript; instead, the error should be returned to AppleScript.
I hope this answers your questions. I would encourage you to send a note to bugs at fetchsoftworks dot com with the subject "beta test", so that you can try a new version of Fetch that we are currently testing. I think you will find it an improvement.
Thanks,
Jim Matthews
Fetch Softworks -
jtzeng Member
I just check an I have two messages from last nights attempt. I was going to send the screen capture but don't know how.
Fetch Window:
Fetch could not get the current folder because the FTP Server dropped the connection.Applescript Window:
Fetch could not get the file list because there was a timeout trying to establish a passive mode data connection.Originally posted by JimMatthews:
Hi,
The answer to 1. and 2. is yes. To do this you would replace each of your mirror statements with something like this:
set done to false
set attempts to 0
repeat while (attempts < 3) and (not done)
try
mirror alias ...
set done to true
end try
set attempts to attempts
end repeatThis code will retry the mirror command up to 3 times.
The answer to 3. is no, there is no way to get a list of files uploaded by a mirror command. Thanks for that suggestion.
You should not see a put error dialog when you are controlling Fetch with an AppleScript; instead, the error should be returned to AppleScript.
I hope this answers your questions. I would encourage you to send a note to bugs at fetchsoftworks dot com with the subject "beta test", so that you can try a new version of Fetch that we are currently testing. I think you will find it an improvement.
Thanks,
Jim Matthews
Fetch Softworks -
Jim Matthews Administrator
Hi,
I think you should contact us and ask for the beta version. It should help.
Thanks,
Jim Matthews
Fetch Softworks
- Page 1
Mirroring to an off site location over the internet has problems with connections over longer periods when data size and connections speeds require hours to complete.
I am using 5.3 on 10.4.11 server.
My questions are as follows:
1. Is there a way to set a retry count?
2. Is there a way in Applescript to detect the problem and loop.
3. Is there a way to get a list of files put to generate a log?
4. Is there a way to suppress the put error dialog that comes up in Fetch and is duplicated in the apples script?
5. If auto retry or looping not viable, can I quit the applescript cleanly so it does not take operator intervention to run the next time?
My App:
tell application "Fetch"
with timeout of 10800 seconds
activate
mirror alias "/Volumes/ACI OSX/4DBK" to url "ftp://user:passwoord@ip.address/array1/ACIBK/4DBK/" format Binary with delete strays
mirror alias "/Office_Share" to url "ftp://user:passwoord@ip.address/array1/ACIBK/Office_Share/" format Binary without delete strays
mirror alias "/Locked_Share" to url "ftp://user:passwoord@ip.address/array1/ACIBK/Locked_Share/" format Binary without delete strays
quit
end timeout
end tell
Posted 14 years ago #