Menu
  • HOME
  • TAGS

Is there anymore documentation on the IDML HTMLItem specification and HTMLItem poster property?

base64,indesign,adobe-indesign,idml

There is no additional documentation at this time. And in testing it looks like the poster property contains Base-64 encoded data.

How to write inresponse in indesign scripts

indesign,adobe-indesign,run-script,indesign-server

It looks like you want to return an array of formField names. You could take advantage of the everyItem() collection interface method in your javascript: var result = myDocument.formFields.everyItem().name; result; The javascript will return the last value in the called script, so just to make it completely obvious, the last...

How to Debug HTML5 extensions for InDesign CC?

debugging,adobe,remote-debugging,indesign,adobe-indesign

Turns out you cannot use the Run As/Debug As -> Adobe InDesign Extension of eclipse to start the extension for debugging, because the essential .debug-file will not be exported. So everytime you want to debug something first Run As -> Adobe InDesign Extension and then copy the .debug-file into: "$User$\AppData\Roaming\Adobe\CEPServiceManager4\extensions\$extesion...

What clipboard format does InDesign use?

actionscript-3,flex,indesign,adobe-indesign

It is copying a file or file reference to the clipboard.

I want to debug my plugin code using visual studio

c++,visual-studio-2010,indesign,adobe-indesign

I am not an expert in Indesign, but I think it works the same like in other programs: Register your plugin in Indesign; Let Visual Studio start the InDesign executable when debugging: change the Project Settings > Debug > Start External Program path to the path of the Indesign executable....

InDesign GREP find between

regex,indesign,adobe-indesign,grep-indesign

In the InDesign UI, you can search for ^[^#]+ to match the contents of the first field; search for (?<=#)[^#]+(?=#[^#]*#[^#]*$) to match the contents of the second field; search for (?<=#)[^#]+(?=#[^#]+$) to match the contents of the third field; finally, search for (?<=#)[^#]+$ to match the contents of the fourth...

Apply bold italic character style to tag when importing xml to adobe indesign

adobe,indesign,adobe-indesign

The following will give you an "emstrong" tag for em nested inside strong or vice versa. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="em[../../strong]|strong[../../em]"> <xsl:element name="emstrong"> <xsl:apply-templates/> </xsl:element> </xsl:template>...

How to copy and paste indd file content into an another indd file?

adobe,copy-paste,extendscript,adobe-indesign

I found the script for my requirement. var myDoc = File("sample.indd");//Destination File var myFigDoc = File("fig.indd");//Figure File app.open(File(myFigDoc)); app.activeDocument.pageItems.everyItem().select(); app.copy(); app.open(File(myDoc)); app.findGrepPreferences = app.changeGrepPreferences = null; app.findGrepPreferences.findWhat = "FIG. 1.1 ";//Figure caption text //app.findGrepPreferences.appliedParagraphStyle = "FigureCaption";//Figure Caption Style myFinds = app.activeDocument.findGrep(); for(var...

Indesign script to change text in a paragraph

text,adobe-indesign

The property you need to use is "contents". myParagraph.contents = "Bla bla bla"; ...

Convert PMString to int32 in indesign SDK

indesign,adobe-indesign

First, a literal answer: Instead of a generic text box widget (TextEditBoxWidget), you can use an integer edit box: IntEditBoxWidget. Longer version: This assumes your "page numbers" are entered as numbers. Note that (1) internal references to pages start at 0, so for a page number "1" you need to...

How to count a specific tags in xml file?

xml,extendscript,adobe-indesign

This can be done in a lot of ways. One is as simple as using the built-in XML object in Javascript: xmlFile = File ('/test.xml'); xmlFile.open(); var myString = xmlFile.read(); xmlFile.close(); myXml = new XML (); myXml = XML(myString); media_block = myXml.xpath("//media.block"); alert (media_block.length()); ...

InDesign can't load sample plug-in

c++,adobe,adobe-indesign

At first, the version of InDesign SDK and Adobe InDesign should be matched. That's saying the plug-ins built with InDesign CS6 SDK can only be loaded by InDesign CS6. Since you mentioned I have InDesign x64 version installed, but InDesign CS6 only has 32bit on Windows. To load the...

Using peerjs with Adobe InDesign

javascript,webrtc,indesign,adobe-indesign,peerjs

Well, the only solution I found was to abandon peerJS and migrate to faye, which is a publish-subscribe messaging system based on the Bayeux protocol. I think it's quite a good solution, and easy to implement. this is my server code var http = require('http'), faye = require('faye'); var server...

Why doesn't Ractive capture every key pressed in an input on MacOS in InDesign?

javascript,ractivejs,adobe-indesign

This must really be a bug in the embedded chromium of InDesign. Anyway, as proposed by Rich Harris, the solution that works is the following workaround, in its proposed jsfiddle with the essential line: <input type="password" value="{{password}}" on-keydown-input-change='set("password",event.node.value)'> InDesign engine on Mac OS seems not to understand the use of...

How to scale an InDesign document through script?

indesign,extendscript,adobe-indesign

So your code is resizing the page itself, but none of the items on the page. You'll also need to scale the items on the page. In other words, you want the script equivalent of running these commands from the UI: (1) Select all, (2) Object > Transform > Scale....

Indesign CC script to apply paragraph styles to multiple paragraphs

indesign,adobe-indesign

Try this script: provided you have a text frame and you referenced it to a variable myFrame for (i=0; i < myFrame.paragraphs.length; i++) { if ( i%2 == 0 ) { myFrame.parentStory.paragraphs[i].appliedParagraphStyle = app.activeDocument.paragraphStyles.item('Style B); } else { myFrame.parentStory.paragraphs[i].appliedParagraphStyle = app.activeDocument.paragraphStyles.item('Style A); } } Save it as a script in...