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

Re: GraphicLines to Margin

fantastic Jarek!... thanks so much.... you are genius! It helps me to do like this.. var myGraphicLine = page.graphicLines.add();myGraphicLine.paths.item(0).pathPoints.item(1).anchor = [page.bounds[0]...

View Article


Refreshment problem when place image.

Hi Experts,When I insert image using script then there is a refreshment problem.In place of second image there place first image.while if I debug this it place in correct order. But in Run case script...

View Article


Script to automatically enter document metadata

I need to enter document info as metadata into all of my Indesign documents as they are posted on the web as pdf docs so I wanted a script that would automaticaly enter the data once the document has...

View Article

Re: Refreshment problem when place image.

Dear Bill, Can you please insert the this line.  #target indesign var myDocument=app.activeDocument;        //Active document have 10 spread with text framefor(int i=0; i<10;i++){ $.sleep(1000); var...

View Article

Re: Script to automatically enter document metadata

Dear RinaPatch, Can you please try the below JS code? May be it will help to you.  var myDocument = app.activeDocument; with (myDocument.metadataPreferences){    author = "Adobe";    copyrightInfoURL =...

View Article


Re: Script to automatically enter document metadata

Thanks for the above. What I need though is for the document name to be automatically entered into the documentTitle field once it has been saved. The only info that is always the same is the Author....

View Article

Re: Script to automatically enter document metadata

Hi RinaPatch, I just modified the js code. You just insert this line  documentTitle = myDocument.name.split(".indd")[0];   thx,csm_phil

View Article

Re: Script to automatically enter document metadata

Thanks, that seems to be working. This is what I have:var myDocument = app.activeDocument; with (myDocument.metadataPreferences){        author = "Department of Human Services";         documentTitle =...

View Article


Re: Script to automatically enter document metadata

Hi RinaPatch, I have totally modifed the js code as per your above request. I sent the private message to you. Which version of InDesign your are using. thx,csm_phil

View Article


Re: Script to automatically enter document metadata

I'm using CS5

View Article

Re: Refreshment problem when place image.

Thanks csm_phil for reply If I use sleep() then  it slow the execution (run) speed.Is there is another solution ?  Thanks.

View Article

Re: Refreshment problem when place image.

Dear Bill, Yes, exactly it will slow execution, But the problem is solved or not?  May be you can use only one place sleep not more place. thx,csm_phil

View Article

Create charater based on a txt file

Y have a text file separeted by tabs with the definitions of the charater style that y want to create, but in some font name it gets error (example Lucida Math Std and Frutiger LT Std.The file was...

View Article


Re: Specified font need to be changed in all paragraph styles

Hi Vamitul, I found the solution. Here is my script.     var doc=app.activeDocument;    var myDialog= new Window("dialog","Font replacer");    var grp1=myDialog.add("group");    var...

View Article

Re: Create charater based on a txt file

Hello Paulo! First a qustion: what error do you recive?Second, a littel experiment, not very sure it will help, but still try it: switch the lines myCharacterStyle.fontStyle =...

View Article


Help with targeting contentType with javascript

Newbie with a problem with probably a obvious answer. I am having a little trouble in the script snippet below. In the for statement, the alert returns the contentType, so I know that I have an object...

View Article

Re: Create charater based on a txt file

I've tried all but none worked. The error that i get is that the requested font family is not available, but i got the font name by the following lines. var myAppliedFont =...

View Article


Re: Create charater based on a txt file

well i got some good news and some bad ones.  The good one: The script is ok. The bad one: The problem is the OS or Indesign or FontManagent.  Make sure you have the fonts properly installed on your...

View Article

Re: Help with targeting contentType with javascript

Hi Try this: for(var theCounter = 0; theCounter < app.selection.length ; theCounter++){           var theThing = app.selection[theCounter].contentType;           alert (theThing);...

View Article

Re: Create charater based on a txt file

Thanks for the quick answer.I use Universal Type Client with Universal Type Server (the server version of Extensis Suitcase or Suitcase Fusion).I will try to deactivate the UTC Core and place the fonts...

View Article
Browsing all 37788 articles
Browse latest View live


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