Re: Auto save
@mionthebeach – you can regard both of the code snippets as trial balloons to find out if your idea can be implemented into a larger script at all. Something like a corner stone of a larger building....
View ArticleRe: Auto save
@mionthebeachAs per ur thread how to run script when open document @ .Laubender code function openEvent(){ ++counter; //YOUR FUNCTION.... alert("afterOpen-event fired: "+counter); };Mi_D
View ArticleSend response to dialog
I typically have app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT at the begining of my scripts. But when duplicating a swatch, InDesign only seems to duplciat the...
View ArticleRe: Send response to dialog
@pkrk – can you give us a more precise description? And some code? Who or what wants to duplicate a swatch?The user in the UI? Your script? If the user in the UI, do you have created a ScriptUI Panel...
View ArticleRe: Send response to dialog
//Creative Cloud - OS X.8.5 myDocument = app.activeDocument; mySwatches = new Array();swatchCounter=0; for(nextSwatch=0; nextSwatch<myDocument.swatches.length;nextSwatch++){...
View ArticleRe: Send response to dialog
Ah. Now I begin to understand… You want to suppress the message when duplicating the swatch.And you tried with userInteractionLevel set to NEVER_INTERACT. What obviously does not work.So you want the...
View ArticleRe: Send response to dialog
hmmm... "add" may be the ticket. I can add the new color and copy the properties of the pantone(hopefully). The names of the pantones have to change for a workflow. Color might change sometimes. I'll...
View ArticleStrange behavior with "insertTextAsContent"
Hi, I've got a strange behavior with this loop : for (j = 0; j < myParagraph.characters.length-1; j++) { var myCharacter = myParagraph.characters[j]; if...
View ArticleRe: Send response to dialog
At the moment, adding a color doesn't seem like it will work for this scenaraio since I will want to get color of the pantone and name it something else. I'll need to find how to say yes to the dialog.
View Articlemath / array / matrix-question
Hallo everybody, first of all: it's not a indesignscripting- but general math-javascriptquestion. please be patient I've got a first (matrixlike-)array (won't change) var containers = ['container11',...
View ArticleRe: Get text selection and properties
objText.contents will give you the contents of the selection not the whole content of the paragraph. If you want to get the properties of the selection, try something like...
View ArticleRe: Get text selection and properties
@All – let's do an example of a selection with a screenshot (always best to illustrate the problem): Simple example, some characters selected with different formatting (in this case the fillColor...
View ArticleRe: Get text selection and properties
I just want to add for the OP: textStyleRanges will change every time the formatting of texts is changed. In the case of subtle changes at first glance to the text you cannot see them when looking in...
View ArticleRe: Get text selection and properties
Another oddity with textStyleRanges in a selection: So, in this example we have four GREP Styles in the paragraph style and one single character selected.How are the bets, if I'm asking for...
View ArticleRe: Get text selection and properties
Just to illustrate my last point: Here an example with a paragraph formatted with only one GREP Style, letter "b" should change color to Cyan. If you select letter b only, the textStyleRange includes...
View ArticleWhy doesn't the #target directive work in InDesign CC scripting?
I have a script which works fine when run from ExtendScript Toolkit on both InDesign CS4 and InDesign CC -- but I am unable to specifically target CC using the #target directive. At the top of my .jsx...
View ArticleRe: Why doesn't the #target directive work in InDesign CC scripting?
Actually, it appears now that using this directive works: #target "InDesign-9" Note the lack of a point version. (Have I missed anything?)
View ArticleRe: Send response to dialog
Add a swatch and copying the properties worked for me. Thanks!!
View Article