S
Scott Ribe
I have a custom template which is (partially so far) working. Now I would
like to have an AppleScript that does exactly what select my template in the
Project Gallery does. However:
make new document with properties {attached template:...
Creates a document that shows the template attached in document properties,
but does not run the Document_New event handler that's in the template for
ThisDocument. (It does run when creating from the project gallery.)
I figured out that I can do this with Do Visual Basic and:
Documents.Add Template:=...
But is there really no way to do this more directly with AppleScript?
Also, the Do Visual Basic "Documents.Add ..." approach fails if the Project
Gallery is displayed. So if MS Word is not already running, and I haven't
turned off display of the Project Gallery at startup (or the user has turned
it back on), this fails. Is there any way to detect that and close it? It
doesn't seem to show up as the active window...
like to have an AppleScript that does exactly what select my template in the
Project Gallery does. However:
make new document with properties {attached template:...
Creates a document that shows the template attached in document properties,
but does not run the Document_New event handler that's in the template for
ThisDocument. (It does run when creating from the project gallery.)
I figured out that I can do this with Do Visual Basic and:
Documents.Add Template:=...
But is there really no way to do this more directly with AppleScript?
Also, the Do Visual Basic "Documents.Add ..." approach fails if the Project
Gallery is displayed. So if MS Word is not already running, and I haven't
turned off display of the Project Gallery at startup (or the user has turned
it back on), this fails. Is there any way to detect that and close it? It
doesn't seem to show up as the active window...