pchiorean / indentz Goto Github PK
View Code? Open in Web Editor NEWCollection of InDesign scripts for simple and repetitive tasks.
Collection of InDesign scripts for simple and repetitive tasks.
delete_gremlins.jsx & make_defaults.jsx – error setting 'ISO Coated v2 (ECI)' profile on Middle East InDesign
var selPage = selObj[0].parentPage
is ok only when [0] is not on pasteboard
Filename_597 x 517 mm_577 x 500 mm_3mm.indd
Creating a collective specifier to manage multiple Spread objects. This trick only works with a set of page items that belong to the same spread or page. The goal is to manually create a true specifier to handle those objects collectively. Initially you have an Array of page items. The trick is to group these objects temporarily and to resolve group.pageItems.everyItem():
var page = app.activeDocument.pages[0],
// an arbitrary array of page items:
myItems = page.rectangles.everyItem().getElements().
concat(page.ovals.everyItem().getElements()).
concat(page.textFrames.everyItem().getElements());
// Groups the items ('myItems' is still an Array)
var tempGroup = page.groups.add(myItems);
// Converts 'myItems' into a collective specifier:
myItems = tempGroup.pageItems.everyItem();
// Resolves myItems
myItems.isValid;
// Remove the group
tempGroup.ungroup();
// NOW 'myItems' is a nice collective specifier:
myItems.fillColor = 'Black';
// etc.
Also character/paragraph defaults, hyphenation etc.
When nothing is selected and the page is very small, it zooms too close.
var selPage = selObj[0].parent.pages[0]; // 1st page of parent spread
Make a layer 'ratio' and put on every page a text frame with computed aspect ratio.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.