Jump to content
Server Maintenance This Week. ×

Applescripts Timeout


This topic is 5836 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Hi,

I use Filemaker to manage a lot of my uploading business for different websites. One part of it is to upload files from my local directories to the webserver. I use applescript and an ftp program called transmit for that. Yet lately the data volume got so big that I constantly get a timeout error on my applescript which handles these uploads.

I was told to use "with timeout x seconds" before my tell to transmit statement so it would give me x seconds before timeout. Yet as I changed my code and reran it in FM I got the same error again and again after 60 seconds.

Again I checked the same script code in the applescript editor and got no timeout.

Is there some kind of bug or some configuration I have to do in order for FM to accept the "with timeout..:" statement ?

Here is my code:

with timeout of 85000 seconds

	tell application "Transmit"

		set theDocument to make new document with properties {name:theServerAddress}

		tell theDocument

			tell current session

				connect to theServerAddress as user theUserName with password thePassword with initial path theDirectory

				if (set your stuff to localDir) then

					synchronize method mirror direction upload files with time offset 0

				end if

				if (set your stuff to StaticDir) then

					synchronize method update direction upload files with time offset 0

				end if

			end tell

			close theDocument

		end tell

	end tell

end timeout



I would really appreciate some hints or directions on this. The point I don't understand is that the statement obviously is ignored by FM as it works with the script editor.

Regards,

Marc

Link to comment
Share on other sites

This topic is 5836 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.