1 Reply Latest reply on Jul 10, 2009 2:17 AM by Thomas B. Nielsen

    Script is not working in CS4

    Pramod_Pant

      Hi all

       

      I have a Apple script for applying character styles although is working fine in CS2. But when we running this script in CS4 is not working.

      If you have any solutions. Plese let me now.

       

      Thanks in Advance

      Pramod Pant

       

      tell application "Adobe InDesign CS4"

      set «class pFnd» to nothing

      set «class pChg» to nothing

      tell active document

       

      -- Change Body Characterstyles

      set myCharacterStyle to character style "Body text bold [city-guide]"

      «event K2  Find» given «class wFnd»:{applied font:"Bembo Std", font style:"Bold"}, «class wChg»:{applied character style:"Body text bold [city-guide]"}

      set myCharacterStyle to character style "Body text italic [city-guide]"

      «event K2  Find» given «class wFnd»:{applied font:"Bembo Std", font style:"Italic"}, «class wChg»:{applied character style:"Body text italic [city-guide]"}

      set myCharacterStyle to character style "Body text FEWT [city-guide]"

      «event K2  Find» given «class wFnd»:{applied font:"Rough Guides ", font style:"Medium"}, «class wChg»:{applied character style:"Body text FEWT [city-guide]"}

       

      end tell

      set «class pFnd» to nothing

      set «class pChg» to nothing

      end tell