Publisher automation - application stays open after Publisher.Application.Quit()

  • Thread starter Viatcheslav V. Vassiliev
  • Start date
V

Viatcheslav V. Vassiliev

After creating instance of Publisher.Application and adding document,
Publisher stays open and visible with blank publication, it is not closed
with app.Quit. VBScript to reproduce this is:

'-----test.vbs---------------------------------
dim app, doc
set app = CreateObject("Publisher.Application")
set doc = app.Documents.Add
doc.Close
set doc = nothing
app.Quit
set app = nothing
'----------------------------------------------

Save it as test.vbs and double-click or run "wscript.exe test.vbs".

Is it possible to close instance of Publisher started as automation and do
this from script? app.Quit does not work and sending WM_QUIT to
app.ActiveWindow.Hwnd (from Win32 app, not from script) does not close
Publisher too.

Regards,
Viatcheslav V. Vassiliev
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top