2 Replies Latest reply on Sep 1, 2008 4:37 AM by (Rolf_Dergham)

    CS2 ME : Cant use FindPreference

      I'm using Indesign CS2 ME 4.0 on Windows XP SP3 (on a MacBook)...
      I have a VbScript Script for Indesign.. dropped at the right place...
      When I run it from indesign, I get the error:
      Windows Scripting Error
      Error Number: 438
      Error String: Object doesn't support this property or method: 'myInDesign.FindPreference'
      Line: 6

      The referred line is here:

      myInDesign.FindPreference = InDesign.idNothingEnum.idNothing

      I dont see anything wrong with this line, and the myInDesign object has been created properly at the beginnig of the script...

      According to this "reference":

      FindPreference is a method of the InDesign.Application.CS2 object in CS2...

      So... what's wrong?? I cant figure it out!

      Here is the script up to the line that triggers the error:

      Function Main()
      Set myInDesign = CreateObject("InDesign.Application.CS2")
      Set myDocument = myInDesign.Documents.Item(1)
      Set myCharacterStyle = myDocument.CharacterStyles.Item("FootNote")