Apply paragraph style with next style
Hi. I haven't been in this forum for a long time, mostly because I've wanted to concentrate on AppleScript and JavaScript seems so preponderant here. Before stating my current question I'll say that some interesting AS discussions have been happening on the Lasso InDesign list, to which I especially invite any AppleScripters: http://www.listsearch.com/InDesign/. I'm tagging my scripting messages there with "AS:" or "AS/JS:" so that people who aren't interested in scripting can filter them out, and I suppose people from here might want to filter out every message that *wasn't* tagged in this way.
Apparently nobody on the Lasso list can help me with this question. Michael Brady has taught those of us there who weren't aware of it that with a multiparagraph selection you can control/right-click on a paragraph style, choose Apply "[name of style]" with Next Style, and then next styles are applied throughout the selection. This is great, but I want to avoid having to mouse to the paragraph styles panel, control-click and drag down to the menu selection. I figure this kind of style application should be scriptable, and "with next style" compiles in AppleScript... but without any apparent effect that I've noticed, and only [clearing overrides boolean] is shown in the scripting dictionary.
Can this desired type of style application be scripted? If so, how? I assume I'll need a separate script for every first-paragraph style.
Thanks.
