On Thu, 22 Mar 2001, Adam C. Engst wrote:
> Hey folks,
>
> Has anyone gotten the Macintosh Swiki implementation to send email
> notifications of changed pages? It simply doesn't work here - I don't
> see any connection to my SMTP servers at all.
The main squeak swiki runs on a mac and, IIRC, does notifications.
Do you have the SMTP server set correctly? You need to make sure you've
set the alterserver to *override* (this bit me once).
One thing to try is munging one of teh SMTPSocket class side examples and
seeing what happens.
> Also, a comment. The SqueakVM app won't quit automatically if the
> Finder sends it a quit event, which means that you can't restart a
> machine automatically.
Hmm. I thought there was a preference for this, but I can't find it.
Note that the "quit" menu command in the Mac menu bar should quit it right
off. So if you can invoke that via a OneClick script or applescript you'll
be fine.
> Instead, you must click Save and Exit first,
> which isn't always possible in a server situation (headless machine,
> remote machine, etc). Is this something that would be easy to fix?
Yes. Peek at TheWorldMenu>>quitSession. I don't know if that's what's
getting invoked (must move over to my mac to check) but you can see:
Smalltalk
snapshot: (self
confirm: 'Save changes before quitting?'
orCancel: [^ self])
andQuit: true
(Note that Smalltalk is a SystemDictionary.)
Smalltalk snapshot: false andQuit: true.
(eh, it coudl be "snapshot: true" naturally)
should do the job.
Cheers,
Bijan.