Find Format, Font Style, Character Style, Find and Change,,, Javascript or Applescript


i'm trying first whoop @ script , in dire need of help. i've downloaded kinds of example, elaborate.

here's i'm trying do:

a find/change, find format (basic character formats; font style "italic")

then

change format (character style; "my style")

 

i've tried create in applescript , in extendscripttoolkit.

yesterday read adobes script intro pdf.... now, don't know if i'm more confused or understanding what's going on.

 

here's attempt—

 

{

                cstyle = app.activedocument.characterstyles.add({name:simple_italic});

                if (italic) cstyle.fontstyle = app.findtextpreferences.fontstyle;

            }

        }

        app.changetextpreferences.appliedcharacterstyle = simple_italic;

        app.activedocument.selection[0].parent.changetext (false);

    }

 

 

is close?

thanks, t—

 

screen shot 2012-08-17 @ 1.12.14 am.png

screen shot 2012-08-17 @ 1.11.05 am.png

screen shot 2012-08-17 @ 1.11.43 am.png

actually, jongware's preptext works!

however, adds character styles....

which don't want. i've tried edit script using (simple_bold, simple_italic etc.) character styles, no luck.

 

this jongware's script:

http://www.jongware.com/binaries/preptext.zip



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support