Why the alert massage return twice on the screen?
Hi, everyone I got this script: var mySelected = Number( app.extractLabel("mDialog") ), myDialog = app.dialogs.add({name:"Colse files save \"Yes\" or \"No\"",canCancel:true}); with(myDialog){...
View ArticleMN Elements in XML Jobs
Hi All, I need to pull out the following marginal tags in XML jobs. I hope problem is in coding 18th line. Screenshot: Coding is below: var myDoc = app.activeDocument; var myLib = app.libraries[0];...
View ArticleNeed a script to output the first page as a resized jpg
Does anyone know of a script where I can output the front cover/first page of an indesign document as a tiny jpeg thumbnail? Easy enough to do manually but a script would save so much time.
View ArticleHow Can find numbers and make it plus 1
Hi, everyone I want find a bunch of numbers in my slection and then make it + 1 for instance: aged (\d\d)I want to make it + 1 and 201(\d) I want to make it + 1 what's the syntax? thanks VK
View ArticleConflict to UndoModes.FAST_ENTIRE_SCRIPT
Hi, everyone I joint some scripts together, but some are conflict to the UndoModes.FAST_ENTIRE_SCRIPT: app.doScript('(mySelection.selectedIndex == 3)', ScriptLanguage.JAVASCRIPT, undefined,...
View ArticledoScript (UndoModes) breaks InDesign's Undo (CS4)
I wrote a little script. To make sure that I can undo it all in one go, I used: app.doScript(main, undefined, undefined, UndoModes.fastEntireScript,"My script"); Once the script completes, InDesign's...
View ArticleMap tags to styles by javascript
Hi All, I need to ‘Map Tags to Styles’ is this possible by javascript? Byhasvi
View ArticleChange script function, can you?
Hi everyone I got this script, function: change font size in selection but I want to change the function to selection text frames I mean: change the font size in all the selected text frames. thanks...
View ArticleA little change is required in the script, please help.
I am using a script named as <Zoom to Width> that I found on web. This script does two jobs(1) zoom to a specific percentage(2) and center the page horizontally as well vertically at that zoom...
View Articlechange UI layout based on panel size
I am looking for a way to adjust the layout of my UI based on the panel's size. For example, two buttons that are above each other until the window height gets small enough that they need to be next to...
View ArticleAlignment in SUI window
HiI am trying to build a dialog with Script UII am trying to 2 rows in a panel, and next to the panel, 2 push buttonsI am not sure why, but I can't get the items inside the panel to be 2 rows - it is...
View ArticleCan you fix script problem?
Hi everyone, I am a newbie of script things, Can you help me to define the "FillTint" and "StrokeWeight" and when I press cancel, It always give an error....
View ArticleHow can find-change grep only on Masters
Hi everyone, I want to find-change (multi line of options) only on master idea inspire by this line, but I am not going to find-change digit How can I find-change only in the master pages? thanks Teetan
View ArticleOutput first page of doc as 20mm high jpg
Hi there, I need to output the first page of several thousand documents as 20mm high jpegs (at 300dpi). Chinnadk kindly helped me get this far: var doc = app.activeDocument; w =...
View ArticleCan you crrect my script?
Hi every one I got this script: //---------------------------------------------------------------------------------------- -------------------var book = app.activeBook, _content = [];...
View ArticleCopy colour to all opening files
Copy colour to all opening filesHi, everyone I want to copy selected color paste to all the opening file’s Swatchesfor instance:1) I selected one or more colors 2) I want to copy to all the...
View ArticleDelete entire row if any cell is blank
Hi all I have found this script and it works perfectly for its purposes (if an entire row has no data/length, then remove it). var myDocument = app.activeDocument;for(var...
View ArticleHow can I find-change only in the master pages?
Hi, everyone How can I find-change only in the master pages? for instance: I want to change 2013 to 2014 but only in the master pages. in all the opening files' master pages. How can I do that? Teetan
View ArticleWhy mFound = mTarget.findGrep() not work on cs5.5?
Hi, everyone I got this script: app.doScript('main()', ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "grow numbers on masters"); function main() { catchOption =...
View ArticleLooping through objects - testing links
HiI have a script that moves all instances of a linked object according to user defined X,Y values.In order to do this, I need to loop through all objects with linksWhat is the best way to do this? As...
View Article