Fork Me on GitHub

Idsnippets

These Are Some InDesign JavaScript Snippets

download .ZIPdownload .TGZ

_buildDocument.jsx makes a doc with a page and a paragraph

08_fontify.jsx gives all the characters of a page random fonts

makeSelectionFonty.jsx give the selection a random font

addToPage this is still nothing. coing soon

docToIDML.jsx this is basic needs a book with docs

docsOfBook_ToIDML.jsx this makes a book with docs and exports them to idml. It also handles Folder

buildBookWithDocs.jsx this makes just a book with some docs

facingPages.jsx sets the active doc to facing pages false

greatPower.jsx with great power comes great responsability

includeRandomQuote this set makes random quotes

lockScriptLabeldTextFrame.jsx select by label needs doc with textframes and label

quickAdjustTXTFrame.jsx the bully for textframes pushes them around

replaceCharStyle.jsx loop thru paragraphs and find charstyles

replaceParagraphStyle.jsx loop thru paragraphs and replace parstyles

splitTextFrame.jsx this is some of Peter Kahrels code

textFramesFromParagraph.jsx this makes a new textframe from selected paragraphs in a textframe

workingWithColors.jsx found at indisnippets makes colors very nice

and many more

under MIT License

Copyright (c) 2012 Fabian "fabiantheblind" MorĂ³n Zirfas
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

see also http://www.opensource.org/licenses/mit-license.php