Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

Re: Change X, Y position of a text frame based on some conditions

Hi, Alert geometrictBounds of textFrame you want to be moved. Check these numbers. Notice there could be a 9-digits decimal numbers. Thats why comparing can fail. So use Math.round() or Math.floor() or...

View Article


Re: How to change reference point to center?

Hi, two choices (or more ;-) )1. app.activeWindow.transformReferencePoint = AnchorPoint.CENTER_ANCHOR//which is a genereal setting ...2. //use transform:var currGraphic = app.selection[0];var...

View Article


(IDCS6 Javascript) Where can I find a list of eventTypes

I am new to Javascripting, so I am still trying to learn where everything is in the documentation.   I have figured out that I probably need to use an eventListener in order to make something happen (I...

View Article

Re: (IDCS6 Javascript) Where can I find a list of eventTypes

Hi JADarnell, It all depends on what you're asking, exactly. When you say you want to open another dialog when the user selects a radio button, we need to know how you're creating the dialog in the...

View Article

Re: (IDCS6 Javascript) Where can I find a list of eventTypes

Hello Ole:      It's nice to hear from you after so long.  You helped me with an extremely large Applescript project years ago (just about the time we were allowed to make an Applescript larger than...

View Article


Re: (IDCS6 Javascript) Where can I find a list of eventTypes

As for ScruptUI yolu might look here http://www.kahrel.plus.com/indesign/scriptui-2-0.pdf

View Article

Re: i want to customise my table so alternate rows are in bold font

Jongware just posted these excellent instructions on how to format tables via scripting on the indesignsecrets website. http://indesignsecrets.com/tackling-tables-through-scripting.php John

View Article

Re: (IDCS6 Javascript) Where can I find a list of eventTypes

Hi John, Nice to know that you remember me! This forum basically doesn't--after I left Adobe, I had to get a new Adobe ID. Which is why I seem to have only posted <25 messages.:-) Sadly, I'm mostly...

View Article


Re: find and remove text frames with same geometricBounds

Hi, I am trying to find and move text frames from one position to another. Below is the code I tried. I am using Indesign CS6, and nothing happened when this script was running. Can you please help me...

View Article


Re: Multipage importing - resize all frames to margins?

Do all the odd pages and even pages have the same margin and page size?

View Article

Re: Change X, Y position of a text frame based on some conditions

Hi  I have added Math.round(). But, nothing is happening. Please advice. var myDocument=app.activeDocument;var myPages=myDocument.pages;    for(p=0;p<myPages.length;p++) {     var...

View Article

Re: Change X, Y position of a text frame based on some conditions

Muthuraj Durairaj wrote: I have added Math.round(). But, nothing is happening. Please advice. Review your code! The logic is severely flawed. Three errors that stand out (there may be more, but these...

View Article

Image may be NSFW.
Clik here to view.

Image Problem

Hi All, Request: For my script I want to copy all graphics from source document and paste in target document. But for one particular art, the script is quit. That art name not comes in "Link" also...

View Article


Getting the Physical Length of a Piece of Text (in mm etc.) in Javascript

I'm trying to write a script in Indesign CS5 (Windows) that can measure the physical, 'rendered' length of two pieces of text of similar length (in mm etc.), calculate the average length of the two,...

View Article

Re: Getting the Physical Length of a Piece of Text (in mm etc.) in Javascript

Lets assume that some text is selected and it's a single line:var text = app.selection[0]; var start = text.characters[0].horizontalOffset; var end =...

View Article


Re: Getting the Physical Length of a Piece of Text (in mm etc.) in Javascript

Another approach (works with multiple lines) is to temporarily convert text to outlines (without deleting the original), read its geometricBounds and finally delete it:Main();  function Main() {    var...

View Article

Re: Image Problem

This image was created by copying it from another application and pasting it into InDesign. That's why it is not a link and has no itemLink property. The error occurs when the script tries to access it.

View Article


Re: Getting the Physical Length of a Piece of Text (in mm etc.) in Javascript

Ah, that's great. :-D I saw the horizontalOffset function but wasn't sure what it did. Now trying to figure out how I can determine the length of some text when it's broken over several lines.. the...

View Article

Re: Image Problem

Hi Kasyan, Thanks for your quick response.. Please give any solution for my script for copy and paste from source document and target document.  Customer using that kind of art also.  Trying in below...

View Article

Re: Multipage importing - resize all frames to margins?

Hi Eugene This should do what you wantYou can download the script from here (might not come out good with copy and paste).Click the iconbutton to resize. Trevor // Script to fit Inserted images to page...

View Article
Browsing all 37788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>