Article View: news.software.readers
Article #243371Re: Dialog Scripts
From: Bob Henson
Date: Tue, 23 Nov 2010 09:19
Date: Tue, 23 Nov 2010 09:19
46 lines
3064 bytes
3064 bytes
Oliver Cromm wrote:
> * Bob Henson:
>
>> I just set up a little script in Dialog which I copied verbatim from the
>> Help files, and which checks for e-mail on all accounts and news on all
>> groups. I put it in OnStartup in the Events scripts. The script worked fine
>> when I ran it from the editor, so I compiled it, and assumed it would be
>> called and run when Dialog ran. It isn't. Can anyone tell me what else I
>> have to do to get it to run when I start Dialog?
>
> If it is in OnStartup, it should be run one time when you start Dialog.
> Did it do that?
No, it didn't. That's what I expected but I guess it needs more adding to
it somewhere. Perhaps it needs to be moved somewhere else in the directory
structure - I assumed it would automatically be in the correct place. I'm
only guessing what to do, I've no idea about programming in whatever
language it is. Here's what's in Onstartup - taken from the Help file -
Program GetHeadersAndEmail;
Begin
ADo('GetNewHeadersInSubscribedGroups');
ADo('GetNewEmailsForAllIdentities');
End.
Running that does "exactly what is says on the tin" - it fetches all e-mail
and news - but only when I run it manually.
>
> If you want to fetch news and/or mail at intervals, you need to set up
> timers in OnStartup and then pull News/Mail in OnTimer1, OnTimer2
> (that's what Eggs Zachtly referred to).
I'm not bothered about that too much, I was only trying to get it to run on
startup. It's no big deal either way, but I thought it would be handy.
--
Regards, Bob
It's not the pace of life that concerns me, it's the sudden stop at the
end.
Technical Details
Message-ID:
<1lnyo5ourd1nq$.1euswvc8r9gqy$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<1nz4dbxuja5mr.mcsw4gvqzysv$.dlg@40tude.net> <126dajg216sdx.dlg@mid.crommatograph.info>Show Full Headers
Complete Article Headers
Message-ID: <1lnyo5ourd1nq$.1euswvc8r9gqy$.dlg@40tude.net>
Subject: Re: Dialog Scripts
Date: Tue, 23 Nov 2010 09:19:44 +0000
From: Bob Henson <rh547477@gmail.com>
References: <1nz4dbxuja5mr.mcsw4gvqzysv$.dlg@40tude.net> <126dajg216sdx.dlg@mid.crommatograph.info>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: Home
Lines: 46
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: mx02.eternal-september.org;
posting-host="+HHU+fRLzPC7leWoDT+I6g";
logging-data="19729"; mail-complaints-to="abuse@eternal-september.org";
posting-account="U2FsdGVkX1/py5P3GhJ6xuFi8/y0R5pg"
User-Agent: 40tude_Dialog/2.0.15.84
X-Face: 5ahJLP_ii|`/Z$C<q,F*9;
ea#LXG80Uk{MLVeY7%vq{9+TP(y]QB-Ei[yt9c|%/xK@@^eQ{
q"`HNG1UW75R[ICxxv%3l'[{;
[C9gy^S>VkN^@GYA.Xbw+Nb|7O$pH\,BRJGNVL3lx58\Y"pht"DQv vsYfXZ?dBPgEgySh+U]rn
Cancel-Lock: sha1:N8L/FlKqzCyR6ANPvYKl+WFECt8=
X-Original-Bytes: 2783