Your best friend for file transfer.

Fetch application logoFetch

applescript/ server busy (3 posts)

This is an archived topic. The information in it is likely to be out-of-date and no longer applicable to current versions of Fetch.
  • Started 22 years ago by scarmody
  • Latest reply 22 years ago from scarmody
  • scarmody Member

    One of the sample scripts (SetSecretOptions) contains this code snippet:

    else if chosenOption is retryDelayOption then
    set rep to display dialog "Between connection retries Fetch will wait this many seconds:" default answer (retry delay as text) buttons {"Set", "Cancel"} default button "Set"
    if (button returned of rep is "Set") then
    set reptext to text returned of rep
    if (reptext as number) is not retry delay then
    set retry delay to (reptext as number)
    end if
    end if

    I'm curious as to whether this enables some option in Fetch that, when a server refused a connection, would cause Fetch to wait N seconds and then retry the connection attempt.

    Or, in the case of server busy, would Fetch return an error, which the AppleScript code would have to handle?


    Posted 22 years ago #

  • Jim Matthews Administrator

    Yes, you can have Fetch keep trying to connect to a busy server (SetSecretOptions lets you specify how long Fetch should wait between attempts). To use this option click the disclosure triangle in the New Connection window; it will reveal a field where you can specify how many times Fetch will retry connecting.

    Jim Matthews
    Fetch Softworks

    Posted 22 years ago #

  • scarmody Member

    Ah ha......

    is there any way to access this "retry count" from applescript?

    Posted 22 years ago #

Topic closed

This topic has been closed.