Re: Applescript Help



On 31/5/06 6:23, in article 1hg7seu.17wbfmt1j2pi2rN%usenet@xxxxxxxxxxxxxx,
"Woody" <usenet@xxxxxxxxxxxxxx> wrote:

Tim Hodgson <thnews@xxxxxxxxxxxxxxxxxxxxxx> wrote:

Gareth Slee <gax.slee@xxxxxxxxxxxx> wrote:

I've been trying this script to automatically download posts into
MacSoup.

tell application "MacSOUP"
with timeout of 30 * 60 seconds
connect with fetching news, fetching tagged headers and sending
end timeout
end tell

return 60 * 5


Could some kind soul tell me what the "with timeout of 30 * 60 seconds"
and "return 60 * 5" commands do?

The version of this script in the MacSOUP manual doesn't have the
'return' line, but the rest is explained very clearly there. Although I
don't know why the timeout has to be given as '30 * 60' rather than
'1800'.

Normally you would do that for clarity reading the source code

Just don't bother defining constants like "seconds_in_a_minute=60" like an
ex colleague once did in a misguided attempt at documentation. I suppose he
was looking forward to compiling his stuff on another planet!

Cheers,

Chris

.



Relevant Pages

  • Applescript Help
    ... I've been trying this script to automatically download posts into ... tell application "MacSOUP" ... with timeout of 30 * 60 seconds ... connect with fetching news, ...
    (uk.comp.sys.mac)
  • Re: Applescript Help
    ... with timeout of 30 * 60 seconds ... connect with fetching news, fetching tagged headers and sending ... The version of this script in the MacSOUP manual doesn't have the ...
    (uk.comp.sys.mac)
  • Re: Urlaubsvertretung
    ... tell application "MacSOUP" ... with timeout of 10 * 60 seconds ... connect with fetching news ... Life is what happens, while you are making other plans. ...
    (de.comp.sys.mac.misc)
  • Re: Applescript Help
    ... with timeout of 30 * 60 seconds ... fetching tagged headers and sending ... you'd get an error message and the script would not continue. ... quoted is part of an idle handler. ...
    (uk.comp.sys.mac)
  • Re: Launching MacSOUP ?
    ... Steve Firth scripts it and starts MacSOUP that way; ... tell application "MacSOUP" ... connect with fetching news and fetching tagged headers ...
    (uk.comp.sys.mac)