Your best friend for file transfer.

Scripting timeout problem (5 posts)
- Started 17 years ago by SoCalMacDude
- Latest reply 17 years ago from Jim Matthews
-
SoCalMacDude Member
-
Jim Matthews Administrator
That should work. Does the script work if you run it in Script Editor (instead of in FileMaker)?
Thanks,
Jim Matthews
Fetch Softworks -
SoCalMacDude Member
You're right!
It does work fine when run throught Script Editor. The error, however, must come from Fetch not giving Filemaker any feedback that it is busy completing the task.Must be a 2 minute timeout somewhere!
More ideas??? -
SoCalMacDude Member
I just solved my problem - it is a bug in filemaker that has been there for years! The FM Script work around looks like this for me:
I created the script as an application file on the hard drive.
Send Apple Event -> Open Application -> UploadDatabase.app
Pause [20 minutes]
Send email to swap the databaseThe file takes 17 minutes to upload now, so I gave it a little more for the future.
Works fine, but now I have to manage the extra file!
Here's a post that helped me discover this:
http://fmforums.com/forum/showtopic.php?tid/79628/Hope this helps the next guy who stumbles on this problem!
-
Jim Matthews Administrator
Thanks for following up -- hopefully Filemaker has fixed this in their latest release!
Jim Matthews
Fetch Softworks
- Page 1
I am trying to upload a database to a web server via Fetch 4.0.3.
Filemaker 6 is initiating the applescript from a Filemaker script.
Everything works well, until an error appears. Fetch begins the upload, and in exactly 2 minutes Filemaker posts this error:
Fetch 4.0.3 got an error: AppleEvent timed out. (Error -1712).
Fetch is, in fact, still uploading, but my Filemaker script continues to the next step, sending an email telling the host to swap out the database. But it's not fully uploaded yet! So, I need some way to supress the error, or set a timeout somewhere longer.
Here is my code (I made the delay long to see if there is a change. Result: no change!):
tell application "Fetch 4.0.3"
activate
with timeout of 2300 seconds
open remote directory "ftp://myserver.com"
put into transfer window "filename and path" format Automatic without uniquename
end timeout
quit
end tell
Any ideas???
Thanks!
Posted 17 years ago #