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
0 votes
0 answers
42 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
123 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
69 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
113 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
97 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
68 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
47 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
0 answers
32 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
60 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
79 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
85 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
109 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
1 vote
0 answers
203 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
375 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
382 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
27 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
267 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
  • 145
1 vote
1 answer
71 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
349 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
86 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,843
0 votes
0 answers
196 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
201 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
554 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
340 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
293 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
239 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
155 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
64 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
456 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
980 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
90 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
324 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
87 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
613 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
167 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
129 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
269 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
855 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
285 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
181 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
398 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
458 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
0 votes
1 answer
95 views

Communication issue between functions into JS and JSX files

I have made this function into a JS file... function getColors(isPick, isForecolor) { var chosenFunction = 'getColor(' + isPick + ', ' + isForecolor + ')'; csInterface.evalScript(...
Simos Sigma's user avatar
1 vote
0 answers
86 views

Selecting and moving anchor points based on User input

I am pretty now to scripting inside Adobe Illustrator. I made a basic script, that opens UI window, where user input three dimensions and the output is three variables X, Y, Z. What I want: I want ...
5s3a_'s user avatar
  • 11
0 votes
0 answers
461 views

How to replace Smart Image with a different graphic WITHOUT using Photoshop?

This Q&A offers a method by using Photoshop to load .js. However, I found this website can achieve this goal without using Photoshop. My question is how this website achieves this goal?
olivia's user avatar
  • 101
0 votes
3 answers
3k views

How can I export a PDF from InDesign with Javascript?

I want to find a script (preferably Javascript) and all it needs to do is export a PDF to a specific folder that I can set the path for in the script. Does anyone know of a script that might have ...
Rory's user avatar
  • 1
2 votes
0 answers
161 views

How can I get layers data in relation to their group name?

I am making a Photoshop script which gets every layer with Bevel and Emboss effect and then doing some actions. I have make this function so to get layers data... function getLayersData() { ...
Simos Sigma's user avatar