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

Re: Exporting each articles button names to an Excel Spread Sheet or other form

You could run a simple script like this: #target indesign// Carlsenvar doc = app.activeDocument;var buttonNames = doc.buttons.everyItem().name;var buttonNameArray = [];for (var b = 0; b <...

View Article


set fonts and styles based on xml parent's attribute

Hi,  I am trying to write an Indesign javascript that can set the font and style based on the import XML parent's attribute, <products><product>    <language...

View Article


Re: set fonts and styles based on xml parent's attribute

Hello, You can define the paragraph styles something like: var myParagraphStyle = app.activeDocument.paragraphStyles.add ({     name: "stylename",      appliedFont: "Univers",      pointSize: 12});...

View Article

Save InDesign CS5 and CS6, js

Hi, I need to save InDesign CS5 files as CS6 and overwrite the original, but I am not getting the save line correctly: myDoc.save(myDocPath+"/"+myDocName, indesign-8.0, true); What am I don't wrong?...

View Article

Re: Save InDesign CS5 and CS6, js

You're missing the 2nd parameter -- whether to save as stationery or not -- and the next parameter must be a string.  So you need something like this: myDoc.save(myDocPath+"/"+myDocName, false, "any...

View Article


Re: Save InDesign CS5 and CS6, js

I am still getting an error. Am I not writing the version name correctly?  myDoc.save(myDocPath+"/"+myDocName, false, indesign-8.0, true);  Or are there restrictions for the file path and name and...

View Article

Replace document fonts in InDesign CS6, js

Hi, I need to replace document fonts in InDesign. I get the existing fonts with following script, but not sure how to replace let's say Helvetica Regular with Aria Regular:  for(var counter = 0;...

View Article

Re: Save InDesign CS5 and CS6, js

You are still missing the quotation marks around the third parameter. And the third parameter does NOT need to be the InDesign version. It can be anything. If you WANT to use indesign-8.0, that's fine,...

View Article


Re: Save InDesign CS5 and CS6, js

Yes, you are right, I just realized I missed that part, but even with that I am still getting an error.  Thank you.Yulia

View Article


Re: Save InDesign CS5 and CS6, js

It's the code I posted is working fine for me ... maybe you should post the whole script. Perhaps there's a problem with myDocPath or myDocName ...

View Article

Re: Save InDesign CS5 and CS6, js

Here is what I have: myDoc = app.activeDocument;myDocPath = myDoc.filePath;myDocName = myDoc.name;  myNewDoc = myDocPath+"/"+myDocName;  myDoc.save(myNewDoc, false, "indesign-8.0", true);  Thank you.

View Article

Re: Save InDesign CS5 and CS6, js

That exact code is working fine for me ...  app.activeDocument refers to the InDesign document that is already open ... the script that you have here doesn't open the ID file. Is that the problem?

View Article

Re: Save InDesign CS5 and CS6, js

I do have indesign file open and when I run the script from the toolkit it stops at save line and makes it red.  Thank you.

View Article


Re: Save InDesign CS5 and CS6, js

When it stops, what does the error message at the bottom say?

View Article

Re: Save InDesign CS5 and CS6, js

It says: "Cannot find the folder ~/Desktop/Filename.indd  Thank you.

View Article


invoke() Change Format settings through script

Hi Forum! I can able to invoke Find and Change menu through this script. app.menuActions.item("Find/Change...").invoke(); But, How can i invoke(). Change Format Settings: style Options; Can anybody...

View Article

Re: Save InDesign CS5 and CS6, js

Ah, ok -- this is a safer (and simpler) way to do it:      myDoc = app.activeDocument;     myDoc.save(myDoc.fullName, false, "indesign-8.0", true);

View Article


Re: Save InDesign CS5 and CS6, js

I did that and I added alert: myDoc = app.activeDocument;alert (myDoc.fullName)myDoc.save(myDoc.fullName, false, "indesign-8.0", true); And now it stops at alert with message: Unsaved document have no...

View Article

Re: invoke() Change Format settings through script

Hi, By using  ID value  app.menuActions.itemByID(18694).invoke();   To get the list of ID value use b/m script - i download from Net. ==================================================== var myActions...

View Article

Re: Save InDesign CS5 and CS6, js

Wow - I never noticed that a Converted doc does not have a valid name OR a valid fullName, unless it has been Saved once -- only the filePath is valid!  (So a Converted doc behaves pretty much like a...

View Article
Browsing all 37788 articles
Browse latest View live


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