Questions tagged [javascript]

Questions related to Javascript code, one of the main technologies behind the web and also being used in Adobe software.

Filter by
Sorted by
Tagged with
1 vote
2 answers
56 views

Indesign Scripting: In a loop, find consecutive paragraphs with the same paragraph style

What I'm trying to do Find all instances of paragraphs with a certain paragraph style. Cut the paragraphs and create a text frame where each group of paragraphs was. Apply an object style to the new ...
Ian's user avatar
  • 65
0 votes
0 answers
29 views

Photoshop TonTon scripts by Michel Mariani - usage and difference to xtools

Anyone uses the Michel Mariani TonTon JSON scripts in Photoshop 2023 / 2024? How to install the jsxinc? When I rename it to jsx, they will show in PS. I have tested the action utility to convert an ...
Sickculture's user avatar
0 votes
0 answers
46 views

Script Listener or Alchemist DE?

what's the best listener for beginner scripting? I'm a little bit confused. Script Listener with CleanSL or Alchemist Dev version? Especially for Action converting and listening.
Sickculture's user avatar
0 votes
0 answers
56 views

How to modify specific frames in InDesign using JavaScript?

I have a parent page that contains 4 text frames. The first and last contain the book name and page number, respectively. I want to keep these as they are. The two text frames in the middle of each ...
LeXa's user avatar
  • 1
0 votes
0 answers
66 views

Indesign script to automate order list by last name

Every month I have to order a long list of names alphabetically by last name. Is there a way to do this all in one single script? This is what I am currently doing: Use a GREP to place the last names ...
bryan yod's user avatar
0 votes
0 answers
74 views

Determine whether the Text Frame, text within the Text Frame or no Text Frame or text portion is selected

Some Background We work with product label design in Adobe Illustrator CC 2022. The purpose of this script is to convert our metric value to Imperial value depending on the user selection: ML to FL OZ ...
Reinhardt's user avatar
1 vote
1 answer
183 views

Adobe Illustrator - Export list of positions and dimensions of vector objects with absolute positions

In previous CorelDraw user life, I had part of a 'workflow' where I needed to gather information on the height, width, and position of objects from a scaled diagram (think e.g., a technical drawing ...
WestXylo's user avatar
-3 votes
1 answer
115 views

How to "Quick Export as PNG" in photoshop CS6?

I use photoshop CS6 for batch editing high number of images because I can clone it by sandboxie software and it is very lite. but there is a problem, CS6 have not "Quick Export as PNG" ...
Pubg Mobile's user avatar
-3 votes
2 answers
179 views

Fix "the command get is not currently available" in CS6

I want use Photoshop CS6 for batch editing because it is lite and can be used in sandboxie software. following script is fully execute in the latest version of Photoshop (2023): #target photoshop /* ...
Pubg Mobile's user avatar
0 votes
0 answers
160 views

How to search in paragraph style in indesign by script

i'm bad in JS, i asked one of my friend to help me in that, also, if you can give me your hand here this will be good too. I have this code, which it's make search for the paragraph by give it the ...
Amr Hamdy's user avatar
-1 votes
1 answer
96 views

Expand color range selections to up or down only

for example i selected some areas like following: Now i want to expand above selections to following: If have any trick or script for this, please provide here. I hope you fully understand what I ...
Pubg Mobile's user avatar
0 votes
0 answers
81 views

Create a new illustrator document with callback options

I am totally new to javascript and extended script. I made a lot of tutorial to try to learn the right method and syntax but for several weeks I can't create the script I want. The script is quite ...
GilbertOOl's user avatar
0 votes
1 answer
39 views

How to integrate photoshop subscripts into the main script?

I have no programming knowledge of JavaScript and following script created by ActionToJavascript: Main Script (i can't put here because my script is very long) Now i want to put following subscripts ...
abo jarba's user avatar
0 votes
0 answers
76 views

How to remove option window from photoshop script?

I have following script that split image contents to specific layer: // photoshopscripts.wordpress.com //////////////////////////////////// // Split to Layers 1.0 // // 2012, David ...
abo jarba's user avatar
0 votes
0 answers
137 views

Seeking Help with Batch Processing PSD Wall Art Mockups

My goal is to batch process multiple PSD wall art mockups, replacing the smart objects within each mockup with several image files. I modified someone’s script for my wall art mockup. My aims to ...
Patrice Ferguson's user avatar
0 votes
0 answers
104 views

why is quick export canceled by close document?

This is a working script which do the same job as it would if you hit tab File>Export>Quick Export As (PNG/JPG). There are 4 artboards and 7 layers in document. I need export 4 arboards. Result: all 4 ...
Jenna's user avatar
  • 37
1 vote
1 answer
121 views

Illustrator - Let the script only apply to one document

I found such a script. But it works on all open files and takes a lot of time. How do I do it to only one current tab. var doc = activeDocument; for(var i = 0; i < app.documents.length; i++) ...
enisio's user avatar
  • 41
2 votes
0 answers
243 views

Photoshop script to insert an image into a layer

I am using Photoshop and Photopea to streamline a workflow. Rather than making hundreds of PSD templates I am hoping to use a base template in where a script dynamically adds the right image depending ...
Toby James Olsen's user avatar
0 votes
0 answers
424 views

Replace Smart Object Script doesn't place the image in the right size, what to do?

// Replace SmartObject’s Content and Save as JPG // 2017, use it at your own risk // Via @Circle B: https://graphicdesign.stackexchange.com/questions/92796/replacing-a-smart-object-in-bulk-with-...
pofdzm's user avatar
  • 3
0 votes
1 answer
431 views

Script in InDesign to separate document into individual files with naming capabilities [closed]

I'm looking for a script that can separate a document into individual InDesign files that, upon extraction, allows for some naming capabilities for each page such as either: adding a suffix (page ...
user174211's user avatar
0 votes
0 answers
28 views

Drag object around a circle on mouse over - Adobe Animate/Create.js/Easel.js

Using Adobe Animate HTML5 Canvas which employs Create.js/Easel.js. I have the following code which drags an object around a circle. Works Ok, but the object should only be moveable when the cursor is ...
IlludiumPu36's user avatar
0 votes
0 answers
325 views

How to modify and fix this Adobe CEP Extension (Adobe Scripts Panel)

There is a very useful Adobe CC extension called Adobe Scripts Panel, which is essentially a panel that lets you run scripts on the fly without having to go to File > Scripts > Select Script in ...
fmotion1's user avatar
  • 155
1 vote
1 answer
77 views

3d virtual exhibition stand

I would like to make an online 3d virtual exhibition stand (visitors of the website should be able to "go" through the 3D stand-model and by chance click on the items or watch the videos on ...
Peter's user avatar
  • 11
-1 votes
1 answer
379 views

How can I SELECT multiple artboards To duplicate them in Adobe Illustrator with action or with script?

I have like 270 files each file have 4 artboards, So I want to duplicate the ArtB(3) and ArtB(4) For 80 times, but I need a script to select the artboards that i need then duplicate them in action to ...
So Brawl's user avatar
0 votes
1 answer
115 views

How to decorate strings of text as nodes if they span across multiple lines?

I have a belief network, in which each node is a belief sentence: In my analysis I want to decorate those sentence to make it like they are nodes: (The colors are not matching, but I'll fix later) ...
Ooker's user avatar
  • 1,853
0 votes
0 answers
222 views

Illustrator - how to properly check the path is a rectangle shape and is rotated using javascript?

When I import DWG files which contain simple objects, mostly rectangles, circles, lines or polygones and save the result in SVG sometimes i get shapes with matrix transformation. I know what is matrix ...
KrzysztofJ's user avatar
0 votes
0 answers
236 views

Show/hide standard Adobe Reader toolbar using JavaScript

Is there a line of JavaScript that can be used to show/hide (ideally alternately as a toggle) the default toolbar in Adobe Reader -- i.e. the same that happens when you press F8? I have tried  app....
David.P's user avatar
  • 163
3 votes
1 answer
641 views

How do I fix missing opacity masks in rendered svg files on the HTML5 Canvas [closed]

I'm currently working on a project that is using the HTML5 Canvas API and I'm encountering a few problems, one of which is disappearing opacity masks used to add texture to an element in Adobe ...
Fishbite's user avatar
0 votes
1 answer
394 views

How can I get a Photoshop script (Javascript) to write a newline in a file instead of Control-M?

I'm using JavaScript script in Photoshop (Ps 22.5.1 on macOS 11.6) to write out some information to a file. When I represent a newline in my code with a \n, instead of getting a newline I get a ^M (...
raindog308's user avatar
-1 votes
1 answer
325 views

Copying Selection to Multiple Layer in Different Position

I am trying to cut selection and paste into four different layers using javascript (layer 01, layer 02 etc.) Like the example picture below: I am trying to find a solution but because of my lack of ...
Katherine Elizabeth Kath's user avatar
1 vote
0 answers
293 views

Illustrator scripting: setting bleeds

Trying to solve this has been an odyssey, thanks in part to Adobe's new community platform breaking old links. Most of what I found is in this thread. So for some stupid and arbitrary reason, document ...
greglab's user avatar
  • 11
0 votes
0 answers
179 views

Photoshop Javascript - color lookup set lut

Say I have the lookup layer as lookup = app.currentDocument.activeLayer How can I set the setting on the layer? As far as I can tell its Art Layer base class, and I can only see base calls in my data ...
Dariusz's user avatar
  • 101
1 vote
0 answers
67 views

Script to create linear path from bezier path on document grid

How do I find the nearest grid point of a bezier path as it intersects the document grid? I am writing a script to create a linear copy of of a bezier path. I need to know where the path crosses the ...
Valerie's user avatar
  • 111
0 votes
1 answer
508 views

inDesign Script to "when textbox created paste clipboard content in it"

I have no experience with scripting, but I can maybe explain what the intented script should do: Select text, cut it. Ctrl + X after mouseUp. Make textbox (manually). Drag with mouse, if possible &...
Amorim's user avatar
  • 1
1 vote
2 answers
1k views

How to write a photoshop script to resize the image until it covers the whole canvas? (not just fit the height[or shortest length])

How to Batch Resize in Photoshop This doesn't seem to work, so I think a script way might be what I need. Adobe Photoshop Scripting The resize method in its JavaScript reference guide doesn't seem to ...
Ryan Case's user avatar
3 votes
1 answer
1k views

How to select or copy all text in InDesign document

I want to select all text content of every page in an InDesign document or copying all text in InDesign document. I have tried scripting method, but did not work.
karky's user avatar
  • 31
0 votes
0 answers
94 views

AI Script to control the anchor of the rectangle from the left

Can I control a rectangle's anchor on the left with a script up or down (like in the picture). var Rctngl=0; var var_Integer; mm = 2.834645731787465 var_Integer =Rctngl; var_Integer = prompt ("...
enisio's user avatar
  • 41
0 votes
1 answer
406 views

ExtendScript: Align group items centered in Ilustrator

Hi, I am new to illustrator and I want to align the textFrame centered to the pathItem(square) using Extendscript as shown in picture1. I have uploaded another picture, which shows the layer and group ...
dextoruz's user avatar
0 votes
0 answers
88 views

How to add an image from local machine to already existing layer on photoshop using javascript photoshop scripting?

I have an existing design and layers on photoshop and I want to add an image from my local machine to one of those layers and I don't know how to do it using a script on javascript? please any help on ...
CTMA's user avatar
  • 1
1 vote
1 answer
671 views

Extendscript: How can i change text frame attributes in illustrator

Hi, I am new to illustrator and do not know about its tools' name. So, I want to change these attributes(underlined in red color shown in the picture) through ExtendScripting. Just let me know their ...
dextoruz's user avatar
0 votes
1 answer
183 views

Indesign: Javascript to access the New Hyperlink panel

I want to create what is hopefully a simple javascript action that I can assign to a keyboard shortcut to save me clicking the same steps over and over. Basically, I want to highlight my text, then ...
Rory's user avatar
  • 1
0 votes
1 answer
137 views

Create multiple document from each group in illustrator useing javascript

I have Ai file whitch file have many groups each group different design. How can I create javascript to separate each group to file. Or any options to do this and each file have to be same name as ...
Mehedi Hasan's user avatar
1 vote
1 answer
311 views

How to place xml nodes into indesign pages (one by one)?

I am trying to place a lot of tables into my document, one by one, but i can't place more than 1 table, does anybody knows how to place each table on one page or textframe? I am using xml nodes like ...
Giovanna's user avatar
-2 votes
1 answer
922 views

how get paragraph style and character style of selected text in indesign by script

I want the selected text to be displayed to me when I select a word or text in InDesign by executing the style paragraph script and its style character?
tabalvor andisheh's user avatar
1 vote
1 answer
316 views

Get the average color of a raster image for a mosaic effect

I've been searching for a way to get the average color of a raster image, to use in a vector grid in front of it to create a mosaic effect - the "Object > Create Object Mosaic..." menu ...
Francisco Vital's user avatar
0 votes
1 answer
2k views

Move item to a different layer using script in Adobe Illustrator

This may be a something I skipped over in my search, but can anyone show me how to add an item to a layer using a JavaScript Adobe Illustrator script? Also, are there any good resources for learning ...
eeeeeeeeee's user avatar
0 votes
1 answer
1k views

How to change the color of text inside a TextFrame instead of color of the bounding box itself

Inside indesign javascript scripting: how it is possible to change the color of a block of text instead the color of the bounding box of the block itself? Because something like: textFrame.fillColor ...
user3450548's user avatar
1 vote
1 answer
193 views

Why does InDesign search not begin at beginning?

I am using a script to copy sequential lines from an input text file into an InDesign document. I have used the script a number of times with no problems. var fi = new File("C:/Documents/input.txt") ...
Ad Astm's user avatar
  • 155
0 votes
1 answer
414 views

Photoshop Scripting - applying changes only to selected artboards

Having trouble specifically with artboards for Photoshop scripting. What I want it to do: I have a photoshop file with 8 artboards, and I want to apply changes (name changes) to the selected ...
user145044's user avatar
0 votes
1 answer
481 views

Issue on returning a variable from an evalScript function

I am working on a CEP HTML panel for Photoshop and I want to check first if there is any opened documents before my panel do what it has to do. So I made something like this into my index.js so to ...
Simos Sigma's user avatar