Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Browsing all 37788 articles
Browse latest View live

Re: Get all the XML elements in document with a given tag.

That works great. Thanks!

View Article


ScriptUI: replacing images

When you use graphic files (such as PNGs) for images, you can change the contents of an image control. The following script sets an image (iconA) but immediately replaces it with iconB, so that by the...

View Article


Re: Detecting clipping path in EPS file

Hallo Piotr, Perhaps the following approach can help.  The script places the eps (inside the selected frame) twice in a new layer: the first time with property epsImportPreferences.epsFrames = false...

View Article

Re: Detecting clipping path in EPS file

If the *.eps was created by photoshop then look to read the file. Search the photoshop scripting forum you can look for 'oclip' or the photoshop file spec tag.

View Article

Re: ScriptUI: replacing images

hmm.. using your own technique: write iconA and iconB to temp PNG files, and use them as is.

View Article


Re: ScriptUI: replacing images

Hi Peter, Assuming iconA and iconB have the same size this should do the trick: var iconA = "\x89PNG...\x82",    iconB = "\x89PNG...\x82";  var w = new Window ('dialog'),    icon = w.add ('image',...

View Article

Image may be NSFW.
Clik here to view.

Re: ScriptUI: replacing images

Thanks both. Vamitul -- Well, yes. I now have separate PNGs that need to be in the script's folder. But I'd rather have everything in the script file. Besides, If I can't get something to work I want...

View Article

Re: ScriptUI: replacing images

Hi Peter! I think you missunderstod me. what i meant was something like this:  var iconA = "\u0089PNG\r\n\x1A\ . . . `\u0082"; var myIcon=new File( Folder.userData.absoluteURI + "/ScriptUI_IconA.png"...

View Article


Re: ScriptUI: replacing images

Hi Peter, In that case you need something more subtle, for changing the underlying ScriptUIImage at runtime through a PNG-string is not supported. You then need both to trigger onDraw (using my...

View Article


Re: ScriptUI: replacing images

Write your "string" images to file, then use the files...

View Article

Re: ScriptUI: replacing images

To be clear, your strings are strings, until you write them to file as binaries.

View Article

Re: ScriptUI: replacing images

Vamitul (and Bob) -- No, I didn't misunderstand you, I was just trying to avoid that method, but I may have to use it anyway. Marc -- I had forgotten about your sprite method and will give that a shot....

View Article

Re: ScriptUI: replacing images

Hi Peter, Marc certainly doesn't need my approval but I found his new sprite button very effective and easy to use. I set up the 3 picture using fireworks, divide the canvas into 3 and then place the...

View Article


Script for collecting Asian fonts

Was having issues with Asian fonts last week and asked a question on the InDesign side of the fence, and scripting came up, which brought me over here to ask if such a script existed for collecting...

View Article

Re: Adding cross reference with find text

HiI learn by using samples found here on this forum. Unfortunately I cant find a simple  example on adding a cross-reference. I found one that links to another file, with very helpful input from Peter...

View Article


Image may be NSFW.
Clik here to view.

Re: Access the palette options of the link panel

Hi Roland! Thanks a lot! Unfortunately that's not what I'm looking for. I guess I should have just taken a screenshot, too  This is it. I would like to, i.e. deactivate ICC-Profile ...  Best,Anke

View Article

textStyleRange with dropCap or grepStyle - Not working!

Hello!(Yes, that again me, that don`t know English, everything is from Google Translate ...)  I created a script that changes the text width settings (horizontalScale)That:  var m =...

View Article


Re: Access the palette options of the link panel

Hello Anke! I see! Via javascript you can't access to these options - i think.  A way out maybe is to build your own panel. Roland

View Article

Re: File close using script prompt message

Thanks Beginner_X for reply I try : var myDocument=app.activeDocument;myDocument.close(1852776480); SaveOptions.no value is 1852776480. I think that there is no difference in...

View Article

Anchored image moves/gets overridden

Hi all, Below there a link to an attachment that contains an indd file, a script and an image: You create a textfield, large enough for several paragraphs.Select the textfieldrun the code. The code...

View Article
Browsing all 37788 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>