This can trip a lot of people up, that a macro of a given name can exist both in the Library and in a specific document. If so, the document macro takes priority.
For this reason it's wise to use caution installing macros in documents. I use a New Document Template, in the Templates folder, that sets whatever you want for any new document. Instead of putting an OnOpenDocument macro in that template, whence it will be included in every new document, I use this structure for my Library OnOpenDocument macro:
; do if document has never been saved ("New Document Template" must exist in Templates folder)
; do if document is not new
--- In email@example.com, "em315" <em315@...> wrote:
> Please ignore this message - the problem occurred because I was trying to open a document that already had an OnOpenDocument macro in it - the problem does not occur with normal documents. Apologies for wasting bandwidth on a non-problem!
> --- In firstname.lastname@example.org, "em315" <em315@> wrote:
> > Here's a strange problem, and I wonder if anyone has any advice on how to fix it.
> > In both my WPMacApp and in John Rethorst's SheepShaver-WP setup, the OnOpenDocument macro no longer seems to do anything at all. That macro (if in Library(USA) or whatever) is supposed to run whenever you open or create or document. This certainly used to work, but no longer works - neither in my WPMacApp or (as far as I can tell) in John's SheepShaver-WP.
> > Any suggestions will be very welcome.