0 Replies Latest reply on Aug 22, 2013 7:07 PM by wizzy107

    vbscript indesign cs 5.5 - package script - please help

    wizzy107

      I am trying to create a package script in VBS and I am getting mixed results :-

       

      If I use this code:-

       

      Set myInDesign = CreateObject("InDesign.Application")

      set fso = CreateObject("Scripting.FileSystemObject")

      myPackageFolder = "C:\test\"

      set myDocument = myIndesign.ActiveDocument

      myDocument.package myPackageFolder, false, true, false, true, true, true, false

       

      Then Indesign Crashes

       

       

      If I use this code (update graphics links is false instead of true):-

       

      Set myInDesign = CreateObject("InDesign.Application")

      set fso = CreateObject("Scripting.FileSystemObject")

      rem fso.CreateFolder mypath & "\package\"

      rem myPackageFolder = mypath & "\package\"

      myPackageFolder = "C:\test\"

      set myDocument = myIndesign.ActiveDocument

      myDocument.package myPackageFolder, false, true, false, false, true, true, false

       

      Then I get a Warning :-

      An attached script generated the following error.

      Cannot save a copy of "1234567ab.indd"

      do I want to disable the event handler (was triggered from after save event)

       

       

      So is this because the file really isnt saved yet and is somehow locked .. so you cant update graphics or copy it???