Re: Applescript Help
- From: Chris Ridd <chrisridd@xxxxxxx>
- Date: Wed, 31 May 2006 18:37:53 +0100
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
.
- References:
- Applescript Help
- From: Gareth Slee
- Re: Applescript Help
- From: Woody
- Applescript Help
- Prev by Date: Re: Fire Inside
- Next by Date: Re: That clearout business
- Previous by thread: Re: Applescript Help
- Next by thread: 256 Mb SODIMM
- Index(es):
Relevant Pages
|