947 questions
3
votes
2
answers
61
views
InDesign script method equivalent of 'doubleclick on UI' on TextFrame ui container 'box'?
In a scenario where I have a TextFrame (TF) with content, and there is lots of empty space at the bottom of the TF. How can I accomplish in InDesign JS the equivalent of 'user interaction of ...
1
vote
2
answers
76
views
How do I apply the 2nd paragraphs pStyle at earliest possible?
EDIT: I took a different approach where I break the content into 2 separate textframes. Not the solution I wanted, and isn't an answer to the question I posed, but it allows me to move on. I'm leaving ...
1
vote
1
answer
134
views
How can I change the currently selected text?
If i run this code,
var sel = app.activeDocument.selection;
for (i = 0; i < sel.length; i++) {
sel[i].textRange.characterAttributes.textFont = textFonts.getByName("ArialMT");
}
it ...
1
vote
1
answer
58
views
Adobe Illustrator JSX add text to text element
I have a .jsx script for adobe illustrator which:
grabs data from a csv
places a predefined symbol and resizes it according to csv data
unchains the symbol and replaces two text strings according to ...
0
votes
0
answers
107
views
Why does page.name return undefined in InDesign UXP plugin?
I'm developing a UXP plugin for Adobe InDesign and trying to access the name of each page using page.name. However, when I run the following code, page.name consistently returns undefined, even though ...
1
vote
1
answer
81
views
How to append to a TextFrame's story without losing previously applied Paragraph Styles?
I want to write an ExtendScript program for InDesign which creates a TextFrame, and then fills the frame with paragraphs, styling the paragraphs as it goes. I.e., add a paragraph, apply a style to ...
0
votes
0
answers
58
views
my premiere pro panel is failing to trigger the button on click
I am trying to build a simple extnesion panel in premiere pro, it has a single button on it, when the button is clicked, it will run the contents of the file, p:myScript.jsx, whose content for now is:
...
0
votes
0
answers
44
views
Can I use extendscript to import 'previewed' audio files into Adobe Premiere Pro?
I have built a simple media player panel for Adobe Premiere Pro that allows users to preview audio files from within the application, rather than trawling through windows explorer and opening in VLC.
...
1
vote
3
answers
122
views
how can I retrieve Photoshop artlayer names from specific sub-layerset into an array?
I have a Photoshop PSD document which has a layerset named “Flags“. “Flags” has a sub-layerset called “LEFT-Flags“ which itself contains artlayers, each with a national flag image. The number of these ...
2
votes
0
answers
50
views
adobe illustrator cep undo stack
In Adobe Illustrator, when working with a CEP (Common Extensibility Platform) panel that modifies TextFrame objects and dispatches events, all these changes should be grouped under a single entry in ...
1
vote
2
answers
562
views
Script for InDesign That Can Export Each Spread of a Document As 2-Page PDF's, AND Name The PDF's Based on Specific Table Cell
Before I explain what I need to happen, I think it'd be helpful to explain the document I'll be working on:
With InDesign, using the data merge functionality, I will create a document where each ...
0
votes
1
answer
59
views
Script to enable 'Track Changes in Current Story' and 'Show Changes'
I have a requirement to enable the 'Track Changes in Current Story' and 'Show Changes' settings of Adobe InCopy when a document is opened in InCopy.
The user does not want to click on these two ...
-1
votes
2
answers
135
views
How to apply a fill color to a text object in Illustrator?
I try to recolor text object. The color PANTONE 185 C is present in the swatches and if object type is CompoundPathItem then it works. But when a text object selected then it lost a color (that is, it ...
2
votes
1
answer
68
views
Refresh InDesign Dialog via ExtendScript to Toggle Checkboxes?
I am using Extended Script to create a dialog in InDesign. I’m reading data from a .csv file to get a list of names and for each name, checkboxes are created to let the user decide on some options in ...
0
votes
0
answers
61
views
InDesign doc to HTML doc conversion
Due to some reasons, we want to convert InDesign documents to responsive and accessible HTML. If we do manually, it would be very time consuming and costly as well. We want to automate or semi-...
1
vote
1
answer
68
views
Return the dimensions of a place image in extendscript
I have an illustrator file that contains a placed image which is contained within a clipping path of similar size, not exactly but only a couple of pixels out. When I click on the image in illustrator ...
0
votes
0
answers
84
views
inDesign Script Errors for Batch Exporting
I need to batch process exporting pages from an INDD document into different formats. here is what I have so far:
var pdfPreset1 = app.pdfExportPresets.item("[Smallest File Size]");
var ...
1
vote
1
answer
54
views
get characters and shorten folder name, applescript to extendscript
In Applescript, I use the below to get a folder on my desktop whose name ends with "PROOF"
(the folders full name name is: A123456-PROOF ), it then removes the characters "-PROOF"
...
1
vote
0
answers
39
views
Premiere SDK. Is it possible to add an alpha matte through premiere script?
I'm working on a project which should create a dynamic mask of the object(s) of focus (or mimic one). So far, I have the functionality to get the data of coordinates of pixels corresponding to that ...
2
votes
2
answers
191
views
newbie moving from applescript to extend script trying to round corners
I am pretty comfortable with scripting Indesign using Applescript, now I want to learn extendscript, & idjs sripting, I am an absolute beginer with both.
Below I have managed to cobble together a ...
0
votes
1
answer
156
views
How to fill a path in Adobe Photoshop with ExtendScript
I have a function that I used to draw lines and then stroke the path.
export const getSolidColor = (hex) => {
const color = new SolidColor()
color.rgb.hexValue = hex
return color
}
...
2
votes
1
answer
100
views
InDesign - making an independent window that will stay open while making corrections in the document
var Widows_Report = new Window("dialog", "Let's Find Some Widows", undefined, {borderless: false, resizeable: false});
Widows_Report.orientation = "column";
Widows_Report.alignChildren = ["center", "...
1
vote
1
answer
145
views
Used AI to generate an Adobe Illustrator v28.3 script that groups the contents of each individual artboard. Can't get it to work
What would be the best way to solve the problem of wanting to 'auto group' all artboards?
Opposed to dragging a selection box of each artboard, then hitting CMD+G, each page has 8 artboards and I have ...
1
vote
1
answer
141
views
Is there any way to move above text into the below table's second cell in InDesign using JavaScript
In my InDesign document there are many tables, each table is on separate page with autoflowing text. There is a text above each table without paragraph returns. I want that text to move from there to ...
1
vote
2
answers
86
views
activeDocument.bitsPerChannel = BitsPerChannelType.SIXTEEN; (WITHOUT MEREGER?) (Extendscript)
I really hope the someone can help out. I just need to change depth from 32 to 16 bit without merging the layers. The code for changing depth is as follows:
activeDocument.bitsPerChannel = ...
1
vote
2
answers
91
views
close button malfunction (Extendscript)
Here is the whole script.
UI();
function UI() {
var window = new Window ('dialog', 'Settings', undefined, {closeButton: true});
window.orientation = 'column';
var iFolderC = ...
1
vote
2
answers
55
views
edittext not responsding .onClick (Extendscript)
Why is this not working?
...
var newFolder = inputGroup.add ("group");
var newIFolder = newFolder.add("edittext",[0, 0, 300, 20]);
var addButton = newFolder.add ("button"...
1
vote
1
answer
92
views
Access is denied writing to file from ExtendScript
I'm trying to write an ExtendScript script for Photoshop 2024. I am using app.system() to execute other programs. I can't figure out how to get a script like that to write a file. I can't get a > ...
1
vote
1
answer
136
views
How to extend Angular NgZorro component?
I would like to extend NzCardComponent and add some additional functionalities in my UI and have my own tag like <my-card></my-card>.
I need to override HTML also. How to do this? Just ...
0
votes
0
answers
66
views
Why does this script create one null when it should create four?
I'm trying to create a script in After Effects which creates some nulls and a shape layer, and applies some expressions to paths in the shape layer. This is based on the Create Paths from Nulls ...
0
votes
1
answer
108
views
Extendscript Regex not behaving as expected
I'm making a script for Adobe Indesign to read some data from a CSV file from Excel.
There are some CSV annoyances with commas and quotes, so I tried to use regex to split, instead of split(",&...
0
votes
0
answers
67
views
child process acts stange premiere pro cep on m1
I created a cep to call an executable Python script that I compiled
everything works fine I can run the executable file and get buffer data
however, when I added a media path, I got back an empty ...
0
votes
1
answer
117
views
Photoshop scripting actions and batch
perhaps one can help me with some scripting snippets for:
A) supress/ignore open and save Dialog in Actions with PS-script
B) supress Color warnings while opening
C) toogle on/off a dialog box next to ...
1
vote
0
answers
74
views
Change Illustrator TextFrameItem aspect
Using ExtendScript for Illustrator, I need to create programmatically AI documents from scratch, with stroked texts.
I created texts with the following code:
textFrame.contents = 'foo'
textFrame....
1
vote
1
answer
65
views
Find in InDesign frame symbols not marked with a certain tag, and mark them with another tag
I have a structured Indesign document. I select a text frame with text, in which some symbols are marked by an XML tag 'XXX'. I want to mark all the rest text in this story with a tag 'YYY'.
I've ...
0
votes
0
answers
1k
views
How to create .aip file (Adobe Illustrator Plugin file)?
How to create .aip file (Adobe Illustrator Plugin file)?
I know how to create .zxp file with ZXPSignCmd.exe.
But how to create .aip file?
I need something which will not be possible to open, so code ...
0
votes
1
answer
579
views
Script to resize, rotate, and center images on specific pages
I am a veteran ID user here, but still pretty green on scripting. I had taken a JS class once about three years ago, but it's one of those use-it-or-lose-it things, I think. I don't remember much, but ...
1
vote
1
answer
84
views
I can't rename link file with name containing: "...%ef..." [ExtendScript Indesign]
I need to automatically rename links according to a specific key. Everything works until the file name contains "...%ef..."
Mac/Indesign replaces "%ef" with a colon - (from api: ...
3
votes
1
answer
194
views
How can I use Hex codes when specifiying a color for defaultFillColor?
I am just getting started with learning scripting for CC software.
I have been reading the documentation and have managed to change the fill colour with:
var colfil = new RGBColor();
colfil.red ...
0
votes
1
answer
172
views
How to get the Active tool or change the active tool to the "Selection Tool"?
I am just getting started on learning ExtendScript or general scripting for Adobe programs. So pardon me, if I am of base.
I think I have figured out most of what I need to know but I am stuck on ...
1
vote
1
answer
360
views
How to correctly build an Adobe Extension?
Hello I've just completed my first extension for Adobe After Effects but now I don't understand how to build it as zxp file. I don't need to sell it or publish it in some marketplace, I just want to ...
0
votes
2
answers
161
views
Extendscript: Concatenating an Unicode value doesn't work
Within an Extendscript Regex search in an InDesign document, it seems that I can't use the "+" operator to concatenate the "\u" and and 4-digit Unicode value. Example:
var text = ...
0
votes
2
answers
239
views
Create a textFrame with multiple paragraphs
From what I've been reading and experimenting by myself when you add a new textFrame it adds automatically a paragraph inside of it so you can do:
const tf = myPage.textFrames.add();
const myParagraph ...
0
votes
2
answers
170
views
How can I extract duplicates from an array using ExtendScript?
I am trying to identify duplicate object names in an Illustrator file using ExtendScript so I can group them. I can get an array of all PageItems on a layer, I just don't know how to identify and ...
0
votes
1
answer
122
views
Getting up and running with basic scripting
I am adopting Premier as my main editor, slowly transitioning from another editor that did not offer any scripting/programming access.
The whole reason I picked up Premier is that it offers scripting ...
1
vote
1
answer
249
views
Indesign - Error 27 "Stack overrun" with app.doScript
I'm trying to automate most of my workplace tasks, but I'm somehow stuck.
Part of job consists in placing various photos into an InDesign document for nesting them and creating pdfs to be printed on ...
0
votes
1
answer
277
views
Get the current file directory from file dialog directory Adobe Extendscript
I have a script that will automatically point a user to a folder on a UNC path/shared folder on a server to allow them to load files InDesign library files from.
The purpose of the script is to ...
0
votes
1
answer
428
views
Adobe CEP Error "Uncaught ReferenceError: app is not defined"
I am trying to build a very basic extension for Adobe Premier Pro which simply opens up a single file but the app object is not being exposed in the object environment of javascript.
Here is my code
....
1
vote
2
answers
511
views
Extendscript for Adobe Illustrator: Unexpected compound shape / path results from expanding image trace
I am writing a script in Extendscript for adobe illustrator that would automate these steps for an ink like effect: 1)Expand the selected object 2)convert to a compound shape 3)apply gaussian blur 4)...
0
votes
1
answer
177
views
The script for Adobe InDesign works in a strange way
I've been trying to write a script for Adobe InDesign that moves frames with pictures. It works, but not as I expected. I can't figure out why the script moves frames located below 553 pixels on the y-...