11

You don't need to script this, just hit Ctrl+F and switch to the 'GREP' tab type \[[^]]*\] in the 'Find what' field or type the same thing with an \s? added in front to also remove any preceding whitespace, otherwise you'll be left with double spaces. so that's \s?\[[^]]*\] make sure the 'Change to' field is empty click 'Change All'


7

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....


7

this is Stefano and I am Co-Founder at Redokun (the tool Loic suggested). There are a couple of ways to translate an InDesign file, and they generally go throw the IDML file format. There are also some workflows you should avoid. Many people use scripts, plugins, or copy/paste the translations manually from a Word/Excel file but: Copy/Paste - Besides being ...


7

I don't think it's possible to achieve this just by styling. You could use Right Indent for every second line, but that would require you to make manual line breaks which would be a mess. I will suggest something different. Why not use Text Wrap for this? Simply make the paragraph justified and use invisible rectangles which prohibits every second line from ...


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 ...


6

More than one error there, I'm afraid. "Hyperlink" is not covered in the latest version of Adobe's own Scripting guide (which would be "Adobe InDesign CS6 Scripting Guide: JavaScript" on http://www.adobe.com/devnet/indesign/documentation.html), but that's no reason to just 'try' things. The ExtendScript Toolkit Editor has a Help of its own – the "Object ...


6

If you need a more fine grained search engine you could also use the FindChange capabilities built into InDesign (you still need a little bit of code to delete all the objects though). You can set the object style to search for or just specific properties in the FC panel and get all the found elements with this little script snippet. app.doScript(...


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 ...


5

Thanks, @fabiantheblind, that works brilliantly. I've adapted that to make it work as a Startup Script (it waits for a document to be opened). // Set a targetengine to make this work #targetengine "session" function saveIDML() { // Exit if no documents are open. if(app.layoutWindows.length == 0) { return; } else { // Get the ...


5

Hooray, as this answer states: With InDesign, generally the reason an image is not displayed in the Links panel is because it has been pasted into InDesign. The script available at the page below will extract pasted (and embedded) images. See here: http://www.kahrel.plus.com/indesign/unembed_images.html It was created by Peter Kahrel. ...


5

This little script should do the job. The main functionality of the script (the first part) is commented and quite simple (if you know javascript). I have added a small input dialog to make the script easy to use, but I haven't commented that part of the code. Copy the code below to a text editor and save it as a .jsx file (for example ...


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

The scripting engine Adobe uses is called ExtendScript which is a dialect of JavaScript, or more accurately EcmaScript. There are many dialects of JavaScript with different libraries around, and some unique preprocessor statements. ExtendScript has a number of libraries not available elsewhere. JavaScript has certain base features that makes them similar and ...


4

There is no reason to use a script in newer editions of InDesign as the IDML feature is under Export. Just go to File -> Export choose Format: InDesign Markup (IDML). If you are worried about the continuous steps learn to use shortcuts which is cmd+E then choose Format: InDesign Markup (IDML). If you want to really use the script you're going to need ...


4

Edit: Here is a script that asks for confirmation before closing a document: #target Indesign #targetengine "closeConfirmation" app.addEventListener("beforeClose", confirmClose); function confirmClose(e) { if(e.parent.constructor.name !== "LayoutWindow") return; if (confirm ("Did you proof your page?") === false) { e.stopPropagation(); e....


4

Yes, this can be done in InDesign, via a script. You basically just need a script that duplicates a text frame onto each new page and moves it ever so slightly to the left on each page. On the first page, the left edge of the text frame touches the right edge of the page and on the last page the right edge of the text frame touches the edge of the page. ...


4

Sure, here's a few: Free: http://www.kahrel.plus.com/indesign/batch_convert.html Paid: http://zevrix.com/outputfactory.php Paid: https://www.axaio.com/doku.php/fr A little tip on using any of these methods (especially the script) on mac: You can easily process files from completely different file paths by creating aliases to the .indd files and putting ...


4

It is a built-in feature. Open the Hyperlinks panel and select "Convert URLs to Hyperlinks..." in the panel menu:


4

Not aware of such a script but it's very easy to combine a selection Grep Find/Change with SortParagraphs.jsx Select your paragraph, open the Find/Change panel. In the Grep tab, replace spaces by paragraph returns. Find \s, change \r Make sure to change selection only. With all the content still selected, run the SortParagraphs script, then revert the ...


4

Not gonna lie... I spent way too much time on this, but here we are... This should be close enough (Instructions at the top of the script): // Version.1.0. // Page Numbers To Percentages.jsx // https://gist.github.com/joonaspaakko/6628e2b6252d622b1b7f7eba601f6c91 // You may want to save before running the script. Every single // time you run the script, ...


4

Thanks to @Wolff and some more searching, I was able to edit an additional script I found on github, (which may be written originally by Joonas??) to accomplish this within InDesign. [None] refers to the default (blank) Master Page named "[None]" and will swap like any other Master Page with this script. [None] does not mean "nothing" in ...


3

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 ...


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

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

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

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.


3

Yes, it is possible to position an InDesign object via scripting. First you need to somehow adress the oval, so you can later move it. If it is the only oval on the spread you can use var myOval = app.activeWindow.activeSpread.ovals.firstItem(); to save the oval in the variable myOval. Afterwards you can just use myOval.move([x, y]); to move the oval ...


3

Here is a proposal: var main = function() { var doc = app.properties.activeDocument, today = (new Date()).getDate(), found, x1, x2, y1, y2; if ( !doc ) return; app.findGrepPreferences = null; app.findGrepPreferences.properties = { findWhat : "^"+today+"$", pointSize:24 }; found = doc.findGrep(); if ...


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