Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Applescripts Timeout

Featured Replies

  • 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

I think you need a try/end try structure around the whole script.

See

http://www.oreilly.com/catalog/aplscptian/chapter/ch07.html

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.