Copy link to clipboard
Copied
Hi everyone,
I want to be able to loop (with javascript) through every pstyle on my doc and read the export details to write a css class for each with this information.
I went through the IDCC DOM (InDesign ExtendScript API (10.0)) but couldnt find how to access that information.
Copy link to clipboard
Copied
The export details are only a summary. Those attributes and values will be created during the export and not live in InDesign.
" and read the export details to write a css class for each with this information"
What does that mean?
InDesign writes the css for you. But if you want to apply class-names via scripting, this is possible, but not really faster, as if you choose Edit > All Exporttags.
– Kai
Copy link to clipboard
Copied
read that summary for each paragraph style and write a class in a css file for each paragraph style
Copy link to clipboard
Copied
I mean, if that summary is there already without having to export anything, it should be available to access it through scripting
Copy link to clipboard
Copied
I don’t think so! Nevertheless: If you interested in bad CSS, export your file, crack up your epub and copy the css.
Copy link to clipboard
Copied
that is exactly what i dont want.
Copy link to clipboard
Copied
Good to here 😉
Maybe it is not clear, what you are tryin to achieve here!
First, those options are created only during the export and are not available via scripting.
What I normally do:
1. Map the styles by hand or via scripting
2. Emit the InDesign CSS on paragraph level or during the export
3. Include my own CSS
Copy link to clipboard
Copied
yeah, but they are already displayed there, so they exist somehow. i just thought 'if they're there they have to be accesible via script'
Copy link to clipboard
Copied
Also, the question is can i access that information? not IS IT FASTER THAN JUST EXPORTING? just exporting it wont mean anything for what im trying to accomplish.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now