Hot answers tagged

6

They covered this in my last User's Group meeting. First, you have to set up your paragraph style's Next Style. If you want the paras to go Style A -> B -> A -> B etc, you have to have paragraph A's next style be Paragraph B, and Paragraph B's next style must be style A. Your styles must create a loop. You can do this with any number of styles. Select ALL ...


5

Got a solution; somewhat automatic, but not very elegant :o In the end, you will get something like this (screenshot below): (Download this InDesign file from Google Drive) The summary, without the images: Make text box for the numbers. Format it. Use character style on it (if you want). Don't make it too small. Add a SPACE in the text box. Yeap, just ...


4

OK, this turned out to be trickier than I'd thought. But I was able to get each chat contained into one text frame with one anchored object. Object Styles I ended up needing to only define one object style. The key settings are the rounded corners, text inset added, and text frame auto height turned on. Paragraph Styles Setting up the paragraph styles ...


4

This example should get you started. You need to run the script once per InDesign session. You could add it as a startup script for example. It will save everytime the user saves the document a idml file. #targetengine "session" // we need a targetegine to make this work var doc = app.activeDocument; // get the current doc // now to the event listener app....


3

Where does your items name "linkslist" come from? By setting a name for the textFrame? The "name" property of a textframe seems to be persistent for the document. Also if you copy paste the textframe to another doc it still is there. But if you have a page with 2 textframes and you run: $.writeln(app.activeDocument.pages[0].textFrames.length); it ...


3

InDesign files are very different from their other Adobe brethren. Each version brings key changes in how the page is structured. I'll leave it at that. Here's a discussion that provides an answer to your question. Essentially, you export to IDML format and hope for the best.


3

The key is to use Frame Fitting Options on your barcode image frame before you create the merged document. In the template document, resize your barcode placeholder frame to the desired final height. Then, right-click the image placeholder frame, and select Fitting > Frame Fitting Options. Then, for Align From, select the bottom center reference point....


3

Regular expressions is a general programming concept and by no means only something found in InDesign (in pretty much fact every programming language out there has regexp support). So you can ask these questions on stack overflow you get a much faster answer. Now the grep of grep styles is different from the grep of search and replace (match versus replace ...


3

Adobe has scripting resource available at ( https://www.adobe.com/products/indesign/indepth.displayTab2.html#Scriptingresources ) I have copies of those docs, but I do not see an explicit object reference. I do however have a an object browser as part of a [random] software product, and I see that there is an class called LinkMetadata with members ...


3

This is definitely doable, and can quite easily be done with the use of a GREP-style script. For each of your attributes, search for it using the GREP tab and replace with <b>$0</b> (so in a script, that would be changeGrep). The codes themselves will probably get some of the formatting but that would not matter if you discard them anyway. (Make ...


3

Thanks, @fabiantheblind, that works brilliantly. I've added a few (borrowed) lines to make it work as a Startup Script (so it waits for a document to be opened). #targetengine "session" // we need a targetengine to make this work app.addEventListener('afterOpen', function(myEvent) { // Only run once a document is opened. See https://forums.adobe.com/...


2

Unfortunately the answer lays in the path of a lot of work. There's no way, right now, but Adobe (being Adobe) has demonstrated a path to achieving the result you desire through their janky system in your link: http://blogs.adobe.com/indesigndocs/2009/03/endnotes_in_indesign_cs4.html What they're demonstrating here is that you can systematically analyse ...


2

I won't comment on the validity of the queries you're running (how specific/abstract you'll need to make the search/replace strings will be context dependent), but the GREP Query Manager script should allow you to easily set up a chain of queries. You can then pull all the .indd files together as a book (.indb file), and run the search/replace script chain ...


2

Page 44 of the cs5 indesign scripting guide has code samples for exporting PDF files. One only need provide code to open and close the required files. The easy way is to pipe or provide a file list, the less easy way is to enumerate the indd files (or shortcuts to randomly scattered files) in a folder and then open and export each in turn. var ...


2

BridgeTalk to the rescue! After asking this question, I've spent days doing research and trial & error to figure out how to get this to work. It seems that the only way to see which colors in a linked EPS file in InDesign is to open that EPS file into Illustrator and check it out there. Thankfully, Adobe has incorporated BridgeTalk into ExtendScript. ...


2

You can use Find / Change to search for objects and automatically change their attributes, but I don't know of a way to delete the objects in the same step. Perhaps you could change the strokes to have both a Fill and Stroke color of None, thus making them disappear. Something like that. Edit: since this was helpful, I added a screen shot. You can ...


2

Don't try to match generic XML with regexp. It will not work in many cases, use a XML parser instead and export the result. See: Why it's not possible to use regex to parse HTML/XML: a formal explanation in layman's terms, especially the second answer. In any case the grep style does not allow matches over paragraph boundaries because its not a multi ...


2

Short of a custom script, the most straightforward way to handle this is to have two master pages, one with the dual first/last variables and one with a single variable. Manually assign the single-variable master to those pages where it applies, assuming that they will be in the minority. I've run into this and variations of the same problem, such as an ...


2

Well it's been a while since I posted this question but I figured I would let everyone know what my solution was. The truth is, there is no way for InDesign CS6 to reset the proportions of stretched images. The only method is to directly select the graphic, then scale up or down with the proportions locked, then they will match. BUT I learned a thing or ...


2

Using Text Variables, you cannot get the built-in type "File Name" to show only part of the actual file name; it's all or nothing. You can create a "Custom Text" variable and assign it anything you want, but you have to remember to update it with the job number part of the filename. Only the latter can be automated with a Javascript, and so you still need to ...


2

This is a tricky problem. I found "TransposeTwoCharacters.jsx" by Keith Gilbert (here) and took some logic from him. This should work for you. // based on // TransposeTwoCharacters.jsx // by // Keith Gilbert // www.gilbertconsulting.com // blog.gilbertconsulting.com // // http://www.gilbertconsulting.com/resources-scripts.html // check for a doc if (app....


2

I think you cant insert it into the story, but you can use insertionPoints like this: var doc = app.activeDocument; var ip = doc.stories[1].insertionPoints[0]; app.select(ip, SelectionOptions.REPLACE_WITH); app.paste();


2

it should be like this: app.activeDocument.stories[7].paragraphs[0].contents = "blah blah blah\r"; See http://yearbookmachine.github.io/esdocs/#/InDesign/Paragraph/contents. The \r creates a had linebreak. For a soft linebreak use \n


2

If there is any way for you to use Adobe FrameMaker instead, you can set up your paragraph style to do this automatically. Unfortunately, InDesign doesn't have this functionality.


2

Regarding the bleed, you are almost there. You have inverted the logic in the bleed test, and you should not be using the preset, since you are already setting the preferences in your with pdfExportPreferences block. Perhaps if you want to use a preset, then you should load the preset before the with block, but I haven't tested that. So: //If any bleed ...


2

In Photoshop the easiest way is to make an action and then run a batch. First step is to change image size to desired and then change canvas size to 600. Illustrator don't allow to record an action with artboard resize but you can do it with macros but you would still need to open every file manually and then start the macro.


1

Thats already a lot you want there. Did you do any prior research or tests? Anyway I think this is what you want. It reads a textfile you select. Add your content to each line. Use a paragraph style to set behaviour like alignment and fonts. var main = function() { // check for active document if (app.documents.length < 1) { // no doc ...


1

Your problem is that the multi-line item isn't one paragraph as far as InDesign is concerned. It's 5 paragraphs. Replace the paragraph returns with forced line breaks (Shift-Enter) and it will work as expected.


1

What about several sets of master pages, each with a different variable in the header depending on what your needs are? I do this all the time with columns and sections.


1

OTF Export will be greyed out if there's nothing on the glyphs pages that is valid for use in a font. It's not very clear in the Indyfont manual but the criteria seems to be: Black fill, using only [Black] from the InDesign swatches (no other type of black) Must have a fill. Outlines/strokes are ignored, only fills count Not text (text within text... eep) ...



Only top voted, non community-wiki answers of a minimum length are eligible