I am trying to save out the pages of a multi page Indesign document (CS5) as individual documents, each of the pages is a leaflet for a different destination, so I would also like the script to name the documents using the contents of a character style which is applied to the destination name.
So for example.
Page 1 is Chicago and has a character style called 'destination' which is only applied to the word Chicago
Page 2 is Detroit and has a character style called 'destination' which is only applied to the word Detroit and so on…..
Can it be scripted so each page is saved as new document using this character style as the name, so the result would be