Nothing about that example mentions anything about timeouts or where they should occur.
Even if it is pseudo-code, please put in script statements about what you want to happen.
OnTimer script might be useful, but like Bruce said not a lot of detail here. Get(UTCms) might also be useful if you want something to loop and exit after a specified time.
Send Event do it without waiting the result (on Windows).
But you open remote file, what do you do with the opened file or if you can't open it?
So essentially the Open URL script has a long time out of it can't access the URL. When it is successful, it opens a file that stamps the connection type information (Example: Wifi or Cellular, IP used etc)
but I want the timeout to be shorter. If it can't open the URL in 2 seconds for example move on with the rest of the script.
thank you all for your replies. Appreciate it
I guess you would really need to look at why it takes so long to connect and open files. Slow connection? Large files? Slow server hardware? Then build something that deals with the cases that could exist. Sounds like a feature request to me.
I went about it a different way:
Setting the Error Capture off at the end of Open URL stopped any dialogs from coming up and lets the script continue on it's own.
The Set Variable $error before the Error Capture Off step allows me to still capture the error I want in order to use it later on in the script as seen in the image.
Thank you all for your responses.