Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

find & change in multiple selected stories

$
0
0

Forgive my lack of basics. I've not scripted in years and can't recall enough specifics to get re-started. I'd like to do this in applescript.

 

What I want to achieve is to convert a bunch of musical chord names in multiple stories from "C" to "1"; "D" to "2" and so-on.

 

Right now I do it by hand. I select the stories (they're all on one layer called "chords"). Then I replace all "C" with "1" with "stories" selected in the dialog box. Repeat with "D" and "2", "E" and "3" etc up to "B".

 

something like

 

tellapplication "Adobe InDesign CS2" 

  tellselected storiesofcurrent document

     change all "C" to "1"

     change all "D" to "2"

      etc.

  endtell

endtell

 

but, of course, this doesn't actually work because I don't know the right words

 

Thanks for any help you can give me. I have hundreds of songs to change and this will save me, perhaps, days of idiot work.


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>