Convert an image file to Base64 or other string value
Hi,I need toread the contentof an image file(JPEG, PNG,TIFF) andconvert that file toBase64string.Does anyone know ifyou cando these thingson Javascript, in InDesign?Thanks forany helpEDIT: I forgot...
View ArticleFind Change all text not including table text
I want to change the date format to (1 December 2009) in activeDocument but without table text, but seem errorbut if I change myP = app.documents.item(0); run through activeDocument, it can change all...
View Articlecombine two arrays
Hi All, 1. I want to combine two arrays using for loop. 2. Remove duplication Combine myParray and myCarray. //~ var myFinal = myParray.concat(myCarray) //~ alert("myFinal: " + myFinal) var myDoc =...
View ArticleInDesign automation using watch folder
Hi InDesign experts, Can we use InDesign desktop version (CS5) for a remote batch processing work without any manual intervention? For example, a script automatically picksup the input file and create...
View ArticleExtracting single pages out of InDesign documents
Is it possible to extract or export single pages from an InDesign document?So far I've done it this way: I remove all the other pages, save to a new document and reopen the original document.Here's my...
View ArticleMore documents to change
Hi All, //This below coding is used to find specified paragraphstyle and change its fontsize, but I need to do change this request at more indesign files. And also advice which ways could we find? var...
View Article"Lorem ipsum"-izer script to make your documents make less sense
I made some newspaper mock-ups and needed to change the text of existing pages into lorem-ipsum nonsense, while keeping the formatting and amount of text the same. So I made this scripts. It will...
View ArticleSelect table using script
Hi, The below line selected all the tables in the document. I need to select a first table and then next table etc... var myTable = app.activeDocument.tables.everyItem().getElements(); Anyone help me?...
View ArticleLooking for someone to script a Day Planner to a specific size and style.
Hi,Looking for someone to script a year long Day Planner in Indesign CC. I've tried one or two scripts available out there but none seem to be able to accomplish what I need.I would envisage the...
View ArticleGerp Styles in CS4
in my ID CS4.. when i try to make a "grep style".. every option are grayed out, not available! Any Advice/help?
View ArticleSharing Knowledge
Hi All, Use below function for avoid Unique or duplicate in arrays: myTextFile2.write( "Ligatures Missing\t" + unique(myParaPageArray) + "\n") function unique(myPs) { var newArray = new Array();...
View ArticleJS: How to remove duplicate items from an Array?
JS: How to remove duplicate items from an Array?I guess there will be a simple way ...
View ArticleExporting pdf from book
I quite new in Java scripting and I'm working (or studing) to export pdf from book through a script.I want to save the pdf in the same paths and with the same name of the books itself... is it...
View ArticleType of window for progress bars?
What type of window (window/palette/dialog etc) is best for progress bars? I´m using window now, but they can sometimes by accident get hidden behind the document. I dont think dialog works, since i do...
View ArticleHow to add para styles in mychange
Hi All, In the below coding is lots of find and change. Now I need to mychange one more additional change with S2, i.e. applied one of the paragraph style. Please advice and see below my coding. var...
View ArticleFind font, if nothing find then no need to put char style
Hi All, In the below coding is to find Italic and apply char style, if there is no char style then add new char style, But in my code doing if there is no Italic created new char style, but I need if...
View ArticleSave as existing file to add few letters
Hi All, This below coding is open indesign file and flow word file then save as in the same name. But now I need to add "_Flowed" with the before .indd extension. See 16th line. But if I run this...
View ArticleSocket
Hi, I use extendables library for checking if a token has expired andit works. #include 'extendables/extendables.jsx' var http = require('http'); var url =...
View ArticleShort cut coding
Hi All, The below coding is to create margins for master spreads. If any shortcut coding for this. See my coding below var mydoc = app.activeDocument;...
View ArticlePlacing library item into page
This script for placing library item into page and applying object style to the item. In line 16, script shows that "assets" property does not support. Please resolve this. if...
View Article