Re: Big performance issue while removing tabs by indents
Hi Loic, Here's few tips that could help out quite a bit, but I'm sure you know them yourself. Besides changing the lines like paras.push to paras[z++] =and p = paras.pop()tol = paras.length;while...
View ArticleRe: Big performance issue while removing tabs by indents
Hi Vamitul, Trevor, Thanks a lot for your inputs. I will try them and let you know Loic
View ArticleRe: Help needed on listing out all tag names using XML Rules in...
http://jongware.mit.edu/idcs5/ jongware also has somwhere on the site a CHM file containing the documentation. One of the best resources ever!
View ArticleFind and Replace
Hi All, Very very simple request for you... But I am strugling: //Need output from the below coding var myDoc = app.activeDocument; var myPstyles = myDoc.allParagraphStyles; var myAllPStyles = new...
View ArticleRe: Find and Replace
try this var myDoc = app.activeDocument;var myPstyles = myDoc.allParagraphStyles;var myAllPStyles = new Array(); for(i=1; i<myPstyles.length; i++){ var myParaName = myPstyles[i].name;...
View ArticleTag Image with XML Tag
Hi All, I want to tag all of my anchored images in a CS6 document with a particular XML Tag. I am using CS6 on Windows with JavaScript. Any advice would be appreciated. Thanks. Rick
View Articlefind images resolution
Hi Forum, I have tried to get alert for the links if it has 250 or 300 resolution. But if the pdf is placed, the script is replying error message."object does not support the property or method...
View ArticleRe: Tag Image with XML Tag
Working through this as I go: First, I need to add the appropriate xmlTag to the document, if it doesn't exist: #target indesign var doc = app.activeDocument; var imageTag = doc.xmlTags.item("Image");...
View ArticleRe: find images resolution
for example check with hasOwnProperty('actualPpi') != false and then start over
View ArticleRe: Find and Replace
Hi Mac, Thank for your valuable reply... I have small clarification in the below code. Could you explain to me. var myDoc = app.activeDocument; var myPstyles = myDoc.allParagraphStyles; var...
View ArticleRe: Tag Image with XML Tag
myDoc.allGraphics will get you an array of all the graphics in the document. Iterate it.if (myGraphics[i].parent.parent.constructor.name=='Character') you got an anchored image. The parent of a image...
View ArticleRe: Tag Image with XML Tag
OK, it looks like I have to add the element to the structure and then use "markup" to apply the element to my image. // Get the selected image. var image = app.selection[0].getElements()[0]; // Get the...
View ArticleRe: find images resolution
hi -hans- thanks for the quick reply, on the flip side of it, it tried to check only for the "Grayscale" images. please see and if you can help on this... var doc = app.activeDocument; var graphics =...
View ArticleCombine two layer names in one command
Hello Community,I have a tiny question: Can those two lines be combined to one command by somehow group the names? I have throught about an array but I would like to have the names still visible. Maybe...
View ArticleRe: Combine two layer names in one command
You can do it like this: myDokument.layers.item("layer1").visible = myDokument.layers.item("layer2").visible = true; Hope that helps. --Marijan (tomaxxi)http://tomaxxi.com
View ArticleRe: Combine two layer names in one command
Hi! Would myDokument.layers.everyItem().visible = false help you out? (This will hide all layers.)
View ArticleRe: Combine two layer names in one command
Hi Andreas,sorry it doesn't help. I have various layers that I have to turn visible by name. At the moment that is one line of code for every layer and that doesn't look very sexy. So I thought "Maybe...
View ArticleRe: find images resolution
imageTypeName won't return the colorspace.try aSampleImageReference.space and check what you'll get ...
View ArticleRelink Missing LINKS
Hi All, I am converting IDML to INDD from Windows to Windows, script running in MAC like watched folder IN and OUT, my files are converting good. When I opened after the converted, the files having...
View ArticleRe: find images resolution
hi -hans-thanks for your support. did you mean. if(image.space == 'Grayscale'){alert("Grayscale")} after using this,,, i could reply... [object-name] in ESTK but not alerts.
View Article