adobe-indesign

Identify coordinates for a visual element in idml

放肆的年华 提交于 2019-12-05 10:39:29
I need to process Indesign Idml files, generate an image, and overlay other elements over certain elements in html. Given an Indesign Idml file (which is a package of zipped xml) and given a visual element in that file (via a tag in the xml). Is there a way to find at what coordinates on the image that visual element falls? Jude Fisher The heirarchy of containers for an image in an IDML document is as follows: Document [Contains] > Spread > PageItem > PlacedImage. Pages aren't used as containers, and PageItems are stored in spread coordinates, so we can forget about the Document and Page

Indesign CS6 Scripting - Exporting images

纵饮孤独 提交于 2019-12-05 04:42:40
问题 I'm having trouble writing a js script in indesign cs6 to export my formatted images. the code below (found on this website and slightly modified) only opens the document. ideally the script would loop through all of the formatted/cropped images in my document and export them into a new folder on the desktop, but with the original file names. any help would be much appreciated: test(); function test(){ var myDoc = app.open('/Users/StudioA/Desktop/file.indd'); var myGroups = myDoc.groups; /

How do I create a folder using ExtendScript?

拜拜、爱过 提交于 2019-12-05 02:01:45
问题 This seems like it would be a very easy problem to solve, but I've been banging my head against it for almost an hour. All I need is a snippet of javascript/extendscript code so that my InDesign CS6 script can create a folder. I know the existing folder in which the new one should be created, and I know the name that this new folder should be called. But how do I get javascript to do it? By the way, all searches online for the folderObj.create() method, which is in the JavaScript Tools Guide,

Scripting InDesign - Beginner

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 19:37:57
I am a seasoned JavaScript programmer, and am currently working on a project which requires a lot of work, and I'm hoping that the process can be automated using scripts for InDesign. Essentially, here's what I want to do. I have a 5 (sometimes, but rarely, 4)-digit string. I then have three rectangles underneath the text frame which I would like to apply a swatch to, depending on the final digits of the number. Numbers 0-9 are assigned a specific colour (and swatch), and at the moment I am manually going through each rectangle, and selecting it according to the last two digits, and applying

Rapidly learn InDesign scripting?

人走茶凉 提交于 2019-12-04 19:02:33
In the middle of a large publishing project, and the sheer scale is weighing me down. Many deadlines coming down the pipe, and most of my trouble is tedium and repetitive tasks. I need to pick up the basics of InDesign scripting pronto, and I'm looking for resources or books which will get me up to speed. I get Java, XML and some web techs... I am not a programming professional, however, and JavaScript is new to me. Mac/Linux, if it matters. Advice? Thanks in advance. @niteshade -- Old thread here, but check out http://codingbat.com/ if you are not so busy now. This is an excellent site for

Is it possible to call a web service with Indesign javascript?

别说谁变了你拦得住时间么 提交于 2019-12-04 16:52:11
问题 I'm an in-house developer for a print company. We use Adobe Indesign CS3 and CS5 to create documents for printing. I created a script in Adobe Extendscript that creates an Indesign Document and handles some basic conversions when the client fails to do so themselves. I used Javascript to write this script. Is it possible to call a web service through such a script? If so, how? If not, what would be the best way to call a web service from the desktop? Thank you. 回答1: No and Yes. No, there is

Indesign CS6 Scripting - Exporting images

ε祈祈猫儿з 提交于 2019-12-03 21:21:52
I'm having trouble writing a js script in indesign cs6 to export my formatted images. the code below (found on this website and slightly modified) only opens the document. ideally the script would loop through all of the formatted/cropped images in my document and export them into a new folder on the desktop, but with the original file names. any help would be much appreciated: test(); function test(){ var myDoc = app.open('/Users/StudioA/Desktop/file.indd'); var myGroups = myDoc.groups; //for each group... for (var i = 0;i < myGroups.length; i++){ // for each rectangle in the group... for(var

How do I create a folder using ExtendScript?

亡梦爱人 提交于 2019-12-03 16:16:39
This seems like it would be a very easy problem to solve, but I've been banging my head against it for almost an hour. All I need is a snippet of javascript/extendscript code so that my InDesign CS6 script can create a folder. I know the existing folder in which the new one should be created, and I know the name that this new folder should be called. But how do I get javascript to do it? By the way, all searches online for the folderObj.create() method, which is in the JavaScript Tools Guide, prove useless. I've tried several variations on that method, but nothing seems to actually create the

Importing Html into Adobe Indesign

三世轮回 提交于 2019-12-03 15:44:13
问题 We are currently working on an pdf version of a newspaper at work, we have a .net website which captures the articles to publish, storing the content entered as html, so we can maintain styles like bold, underline, strike out. Once this is stored in the database we are planning to use Indesign to create the pdf. We currently we have a template built, but when we generate an xml document and import into Indesign the html tags are just written out. Is there a way around this, to get Indesign to

What is the difference between app.doScript and $.evalFile?

可紊 提交于 2019-12-03 13:28:20
The only difference I have found so far: If a script that is run by app.doScript returns an error, the file and line number of the error are overridden by the file and line number of the app.doScript call. Are there any other differences I should know about? Here's sample code that demonstrates the above difference: First run InDesign: c: cd "C:\Program Files\Adobe\Adobe InDesign CS6 Server x64" InDesignServer.com -port 12345 pause Next create a batch file to run a script: c: cd "C:\Program Files\Adobe\Adobe InDesign CS6 Server x64" sampleclient -host localhost:12345 -server "C:/doscript_vs