Quantcast
Channel: Adobe Community : All Content - InDesign Scripting
Viewing all 8771 articles
Browse latest View live

Anno layer

$
0
0

Dear Friends,

 

I need all anno styles map in anno layer, the below script doing only created anno layer.

My requirement is find the anno paragraph style and map in anno layer (see the screen shot for my requirement.)

 

var myDocument = app.documents.item(0);

var myLayer = myDocument.layers.add();

myLayer.name = "Anno";

myLayer.layerColor = UIColors.TEAL;

myLayer.ignoreWrap = false;

myLayer.visible = true;

 

My Requirement.png

 

Thanks

kanaga kumar.k


Automated generation with an external execution InDesign

$
0
0

Hello everyone,

 

I recently start jsx scripting for InDesign ( I previously scripted for AE ),

and i would like to know if it is possible to start InDesign project with a JSX as parameter to automate generation from XML data ?

 

(I'm Running on Windows 7 with InDesign CS6)


Best Regards,

How to write script to apply character style?

$
0
0

Hi,

 

I'm on a Macbook pro and without a number pad so I can't assign a shortcut for the character styles. I did hear of a roundabout solution where you can assign a shortcut to a script which applies the character styles. Can anyone write this script?

 

My character style is called 'Features bold'.

 

I'm new to scripting, sorry if this is a dumb question.

 

Cheers

Export PowerMath Equation to MathML

$
0
0

Hi

 

How to convert all PowerMath equations to mathML

 

Thanks,

PLACE ERROR 29442

$
0
0

I'm trying to import a word file into a frame:

 

var myTransFile= File.openDialog ("Select TRANSLATION File", "WORD files:*.doc", true);

    if(myTransFile==null)

    exit();

 

      transFrame.place(File(myTransFile),true);

 

transFrame is the frame I'm trying to import to -- it's valid (there's text present in it, and alert(transFrame.contents) shows the text.

 

Any idea what I'm missing?

 

Thanks.

creating a custom dictionary so I can use specific spellings and characters

$
0
0

I was told that a a find/change by list script would help me with my need.

 

How can I create a dictionary so I can use specific spellings and characters in my document? Example: we spell numbers from one - nine instead of using the actual number 1-9. We also use uppercase ins one words always etc.


We get documents and we proofread them and then we apply this rules across the board to emphasize importance in the documents. I hope that makes sense.


Please see examples below and advise how to apply and create a list script:

Plus Sizes

Cold Weather Accessories

Swimwear

Clearance

Sleepwear

Apparel

Accessories

Key Collection Statement

Key Item

Collection Group

Collection

Week

Event Planner

Subdivision

Catalog Outpost

Seasons

Spring

Summer

Fall

Winter

Cold

Cool

Warm

Resort

Royal Velvet Fashion Bedding

Bedding Collection

Two-Way Communication

Dress Shirts

Ties

Panties

Bras

Sweaters

Earrings

Watches

IZOD

MY COMPASS

BEST PRACTICE

How can I use Negative Lookbehind "(?

$
0
0


How can I use Negative Lookbehind "(?<! )" and Negative Lookahead "(?!)" in Indesign GREP search?

Can someone make an instance to me?

widows orphan line script

$
0
0

Hi,

 

I want to find the 'widows & orphan' lines in my active document, if its (window orphan) appeared, I need the log report. Is this possible by script.

 

 

by

hasvi


loadSwatches with replacing

$
0
0

I'm trying to write a script that will update the swatches in some old documents with the CMYK values from a new document. app.activeDocument.loadSwatches(myStyleFile) pulls in the new swatches OK, but the names are the same, so I end up with two swatches of the same name except that the new one has "2" appended to it.

 

I don't see anything like a globalClashResolution available for swatches. But maybe I just can't find it.

How to find "mypara-firstline-pagenumber" by script

$
0
0

HI

 

How to find the mypara-firstline-pagenumber by javascript?

 

by hasvi

Where can I find a Javascript developer for InDesign scripting?

$
0
0

Hi

as

I apologise in advance for posting on a technical site for InDesign developers, but our company (Dorling Kindersley) is looking for a full-time permanent developer to join our team. I've been looking for some months now and I would really appreciate some advice on where or how InDesign scripters look for work, as our role is quite specialised.

 

We can offer an attractive package and although I'm biased as I work there, Dorling Kindersley really is a nice place to work - fun, friendly and super creative. I would welcome advice or for someone to approach me if they're interested.

 

It's advertised as full-time and permanent but for the right candidate we can offer flexible working conditions.


Best


Heather Hughes

 

Publishing Technologies Software Developer (permanent role)


We’re looking for an enthusiastic individual keen to join our Creative Technical Support team, to create, maintain and enhance software tools for our creative and operations teams around the globe. This is a permanent full-time role.


Each tool is a script or collection of scripts that allows DK to automate their creative workflows, from checks that spreads and covers have been created correctly to automated deployment of colour settings.


The ideal candidate will have solid experience of using scripting to command Mac OS and Adobe products, have strong analytical skills and be curious, patient and willing to learn new skills. If you have design, publishing or print experience this will be an asset, but we can help fill in the gaps with training and guidance. You’ll need to be a ‘people’ person as most of the people you’ll come into contact with won’t have a software development background.


Not only do you get to work next door to Covent Garden, in the heart of London, but  you’ll be welcomed into a small team of  friendly and irreverent geeks, who are experts in Adobe applications and workflows  and helping creative teams overcome their technical problems. Lunchtimes are often spent getting out and sampling the local cuisine in the vast number of restaurants and eateries around the office.


You’ll get to work in a relaxed, sociable and friendly environment, working alongside our award-winning creative staff to develop their ideas for tools and get satisfaction from freeing them up to be even more creative.


Skills required:

Excellent skills and experience in using Javascript

Experience of working with Macs and Adobe applications preferred

Other programming skills and experience an advantage, e.g.  Applescript, Adobe InDesign Document Object Model, XML structure, TDD, Shell Script, Obj-C, C++ and Xcode

Ability to learn new technologies swiftly


Why work for DK?

DK is an award-winning global publisher of distinctive, highly visual products for adults and children alike. We have a reputation for producing innovative design and digital products.


Everything we make from books, eBooks and apps give unrivalled clarity to topics with a unique combination of words and pictures, put together to spectacular effect.

We produce content for consumers in over 52 countries and 42 languages from offices in Delhi, London, Melbourne, Munich, New York and Toronto. We celebrate our 40th birthday this year, and we are enormously proud to be the world’s leading illustrated reference publisher.


You’ll  be joining an awesome and highly talented, diverse and creative team, in an environment where everyone is encouraged to learn and coach new skills, as well as having the opportunity to grow and develop with people who are passionate about what they do.



 

Write a script for print specify pages

$
0
0

I was wondering if its possible to make a script to tell indesign that I want to print same specify pages in a book by book method without page by page?

 

for instance:

 

I have a book in processing, in which have hunder pages is green page(in which only green color), may be hunder pages is red page(in which only red color), etc., those are disperse in that book.

 

sometimes I only want to print green page, sometimes want red page.

 

So, is that possible write a script for book print and only print red or green page?

IndesignGREP Find-Change Queries FAQ

$
0
0

Can someone tell me what’s role:

 

Multiline on

(?m)

 

Multiline off

(?-m)

 

Single-line on

(?s)

 

Single-line off

    

In indesignGREP Find-Change?

    

Can someone make me an easy instance?

Print and Save

$
0
0

If I have 2 opened documents, I want to print and then save, but I found if I put aDoc.close(SaveOptions.no);, it will not print the second file, how can I make it to print one document and close that document and then print second document ......

myTest();

alert("Finished");

 

function myTest(){

    for (i=0; i<app.documents.length; i++) {

  var aDoc = app.documents[i];

        if (aDoc.printPreferences.pageRange != ""){

            alert("a");

            aDoc.print(true);

         //   aDoc.close(SaveOptions.no);

                  }

      }

  }

Anchor required

$
0
0

Dear Friends,

 

I need “Para_No” paragraph style should be placed in “archor format” in next para begining of text. This is urgent request. Kindly help in this regard.

 

Actual page:

Screen Shot 2014-05-19 at 10.25.47 AM.png

 

MY Requirement:

 

Screen Shot 2014-05-19 at 10.13.57 AM.png

 

 

 

 

Thanks in advance,

kanaga kumar. k


Opening the document setup dialog window

$
0
0

how can i open the document setup dialog window with javascript!?!

GREP help

$
0
0

Hi,

 

I am new to GREP and cannot figure out how to make this work:

 

I scan some pages and often the same mistake occurs:

 

The scanner mistakes "1" for "I". (Capital i)

 

Where it shoud say "1. december" it says "I. december"

"10. januar" becomes "I0. januar"

"2014" becomes "20I4" - would be nice to make a GREP search here I think.

 

I hope that someone can help me.

 

Anita

Again Library Item

$
0
0

Hi All,

 

I have coding to place Library Item into the Page Layout, my Script placing the library Item into that parent Page,

 

But my Problem is I can not place XMLElement Into that Library Element Box.

 

Here is my Script:

 

myDoc.select(myElement);          

            var mySideBarXML = app.selection[0];

            try  {

                                myAsset = myCurrentLib.assets.item("Box");   // Name of the library item is "bx1"

                myLibraryItem = myAsset.placeAsset(myElement.insertionPoints[-1]);

  catch (err)   {

                alert ("There is no library element with the name Box");

                exit();

                }

 

            // TO PLACE TEXT IN LIBRARY ITEM

          try {

                myLibraryItem[0].textFrames[0].placeXML(mySideBarXML);   // if the library element is group of frames.

                              }

            catch (ee)  {

                try {

                    myLibraryItem[0].placeXML(mySideBarXML);   // if the library element is a single frame.

                    }

                catch (ee) { }

                 

                }

                                     }

 

can any one help on this.

 

Regards

Hurix

Another Javascript code

$
0
0

Hello

 

I have Placed a PDF on a Layout in InDesign, I was Javascript to re-scale this to 117.7970

I have found the code

app.selection.horizontalScale=117.7970;

app.selection.verticleScale=117.7970;

But with this i have to select each image then this will apply, it would really like to use a foreach javascript loop so that if i have multiple PDF's placed on each page i can re-scale them all in one go.

i mean the question would be how to use the above in a foreach loop for image placed PDF in the layout?

 

Thanks

Remove file name prefix when exporting to PDF

$
0
0

Hello,

 

I found a script here which exports the active document as a PDF to the desktop.

I would like for it to change the file name such that the first two characters are removed.

 

Example:

The existing file name is: X_pagelayout.indd

I would like this script to create a PDF named: pagelayout.pdf

 

Thoughts?

Your help is very much appreciated.

 

 

var myFolder = "~\Desktop";

var myDoc = app.activeDocument; 

var myDocname = myDoc.name.split(".indd");

myDoc.exportFile(ExportFormat.PDF_TYPE, File(new File(myFolder+"\\" + myDocname.join(".pdf"))));

Viewing all 8771 articles
Browse latest View live


Latest Images

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