Re: Make hyperlink text actual hyperlinks
Hi, first: you'll need a grepsearch (something like: (?<=<link>).+(?=</link>) which should only find the link itsself)second: to create a hyperlink you'll need a source and a...
View ArticleRe: Which of 2 numbers are closest to 0
Thanks dln385This was exactly what I needed. And yes, Peters code returns the abs number - not the original dln385,can you explain your first code?I understand what your codes are doing (I actually...
View ArticleRe: Which of 2 numbers are closest to 0
It's called the ternary conditional operator. (That a bit of a mouthful.) The syntax looks like this:condition ? expr1 : expr2 If condition is true, the operator returns the value of expr1; otherwise,...
View ArticleRe: Which of 2 numbers are closest to 0
Wow, great!Thanks for the explanationand Thanks for the site!!!
View ArticleRe: ScriptUI : edittext live modifications problem
Hi Marc, I tried your script but when I press enter the quick apply menu comes up.AFAIK This is because you use WshShell.SendKeys which does not distinguish between the regular and the number pad enter...
View ArticleRe: Make hyperlink text actual hyperlinks
I have the following so far:var doc = app.activeDocument;app.findGrepPreferences.findWhat = '(?<=<link>).+(?=</link>)';var objs = doc.findGrep(); for(var i=0; i < objs.length; i++){...
View ArticleRe: JS to add url hyperlink to a rectangle shape?
Hi, here's a script that might help you. I made it and tested it only for InDesign CS5.5.How to use it: select any object in InDesign then run the script. At first, the script will try to see in the...
View ArticleRe: Which of 2 numbers are closest to 0
> And yes, Peter's code returns the abs number - not the original Indeed! Hadn't spotted that.
View Articlefree transform the image
Hi Forum!, Im new to scripting. Thanks to forum for sharing the knowledge to entire world.. I have a small request to do with the scripting. I have grouped all the pageItems.... as G.and then selected...
View ArticleRe: Make hyperlink text actual hyperlinks
Hi,as you want to use the found link itsself as textsource ... have you thought of calling the command 'convert Urls to hyperlinks in the GUI'¿The link-tags wouldn't be needed then ... A script could...
View ArticleList used colours
I could swear I used to have a script that created a list of used colours in a InDesign document, but it doesn't seem so...Is there a way to list all used colours and make a list or something...
View ArticleRe: free transform the image
try sthg like: var g = app.activeDocument.allPageItems; var gr = app.activeDocument.groups.add(g); var bgr = gr.geometricBounds; var hgr = bgr[2]-bgr[0]; var pm= gr.parentPage.marginPreferences;...
View ArticleRe: List used colours
should save a txt on the desktop which includes used swatches: #target indesign app.doScript(mySwatches, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT) function mySwatches(){...
View ArticleRe: [JS] ScriptUI CS6
Hi all, I made an easy to use scrollable panel function. There is one significant change from the methodology used above. That is the use of maximumSize, without using this the size of the inner...
View ArticleCannot set the printBlack printPreference in InDesign
I am finding myself running into a brick wall and it is upsetting me greatly. It's a problem with setting the printPreferences for a document. Here is the code I have:...
View ArticleRe: Indesign Interrogation d'une base de données
Ma recherche se tourne finalement vers le javascript.Là je n'y connais rien, donc je vais tâcher d'apprendre, en me basant sur des scripts existants. Voici ce que je souhaite réaliser :1• ouverture...
View ArticleRe: Cannot set the printBlack printPreference in InDesign
Hi, there is also ColorOutputModes.SEPARATIONS needed and... I am not sure if more...Maybe better way is to set properties of printer outputPreset instead of doc.printPreferences which is mixed with...
View Article