CSInterface | Full TypeScript CSInterface | Continuous Deployment library
kandi X-RAY | CSInterface Summary
kandi X-RAY | CSInterface Summary
Full TypeScript CSInterface (v8 & v9).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of CSInterface
CSInterface Key Features
CSInterface Examples and Code Snippets
Community Discussions
Trending Discussions on CSInterface
QUESTION
I need to rename files using Photoshop Script and the code works fine on Windows but doesn't work on Macintosh. The code runs without error but the files name stays the same on Mac OS. It changes the file name on Windows.
Hostscript Code:
...ANSWER
Answered 2021-Mar-26 at 16:56I found the solution if anyone needs it.
This code works in Windows but not on Mac:
QUESTION
I'm using cep (csinterface) to communicate with extendscript and I need to pass an array in a fonction. The problem is that extendscript convert my array in a string. I wanted to send a string with delimiter at my function but when I use array.split() I got an evalscript error.
In the index.js
...ANSWER
Answered 2021-Mar-15 at 16:41it depend if you want an array of integer if its the case use JSON.parse:
QUESTION
I need to take the current active document open in photoshop and send it to a JS function who need the file in parameter.
I tried by getting the path of the file like this :
...ANSWER
Answered 2021-Mar-08 at 13:24I was able to do it using this code
QUESTION
I've been experimenting with panels development for Premiere Pro CC 2019, and am now trying to follow the tutorial found on https://medium.com/adobetech/how-to-build-a-node-js-server-in-a-panel-ba1d63ea67e2 on creating a localserver with nodejs alongside a panel, but I can't get it to work
I've uploaded my code here, which doesn't differ much from the tutorial beside updated manifest.xml version numbers: https://github.com/VanMuylemSven/AdobePanelNodeSample
Clicking the panel returns an empty alert, tested in both Premiere Pro CC 2019 and Photoshop CC 2019 Enabling the debug always tells me that the connection is refused, and none of the console logs in the localserver ever get triggered.
Manifest.xml
...ANSWER
Answered 2019-Dec-06 at 22:09There's a comment on the article which was originally posted here:
He says replace:
QUESTION
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 test if I get the correct result. But psDocumentsLength
variable returns as undefined. Any idea what am I doing wrong?
ANSWER
Answered 2019-Oct-31 at 10:39Considering what Sergey Kritskiy said at graphicdesign on stackexchange about issue of code async, I tried to add a setTimeout
after check_PSDocumentsLength()
function call and it worked!!! So my code now looks like this...
QUESTION
I have made this function into a JS file...
...ANSWER
Answered 2019-Oct-27 at 08:55Well, here is the solution...
QUESTION
I am a novice programmer and new to adobe extensions but have developed an extension that is not working correctly in Photoshop 2015. It works perfectly in PS 2017, 2018 and 2019.
I am reading array data from a JSON file with JSX and using an event listener in the main.js file to return the data. The extension reads the settings from the returned array. It works perfectly except in PS 2015 where it can only return the UserID but nothing else.
JSX Code reading data from a local file:
...ANSWER
Answered 2019-Oct-18 at 20:54Maybe there's a great story behind this, but apparently event object parser in CC2015 is broken: while simple object work (so your datareceived_arry['userinfo']['userid']
is accessible) arrays are converted to strings: JSON that the panel receives looks like this (notice all the arrays are strings now):
QUESTION
I needed to update versions for AngularJS and jQuery for project. The old versions was jquery-1.11.0.min.js and angularJS 1.2.10. And now I would like to use newest available versions that are angularJS 1.7.8 and jQuery 3.4.1. Generally I am using everything like it has been used here but without any framework - https://medium.com/adobetech/how-to-create-your-first-adobe-panel-in-6-easy-steps-f8bd4ed5778
But when I'm using new versions I have very often many errors that are so inexplicably. Main thing what I am thinking is that it jQuery is somehow conflicting with angularJS. Here is my code -
...ANSWER
Answered 2019-Oct-11 at 04:07In crome try ctr+shift+i, you will land to developer console where you can see the error details and line. This status generally occurs when the browser error comes or request blocks by browser.
QUESTION
I have an HTML dropdown for an InDesign script that when I pull the JSON from the file into, it comes back as object Object. i cannot figure out what i am doing wrong.
I've tried a bunch of answers on here, but none are working with the code I have.
my HTML:
...ANSWER
Answered 2019-Sep-11 at 08:08Since swatchesConv
is
QUESTION
I am trying to create a plugin for Photoshop. My file structure is as follows (as recommended in Adobe's guidelines on building plugins):
My root folder contains two folders: client and host. The client folder contains index.html and index.js. Index.html provides the design and references both javascript docs. Index.js contains references to the elements in index.html, and sends directions to trigger functions contained in the index.jsx folder mentioned below.
The host folder contains index.jsx, which contains all the functions that actually trigger photoshop's tools. To get this javascript code, I've used xtools on mac to convert the photoshop actions I've created into .jsx files.
I want my plugin to have a text box in which users can input a value (it has to be a number), and then hit a button to trigger a function, a part of which I need to contain the value of the number they entered.
In this example, the function will resize the image to the user's desired number of pixels.
(Note: - the script works perfectly when the number is static/preset within the function and the button simply triggers the function without any other input - I'm just struggling with getting the value from the text box into the function).
Here's the code on each document:
index.html:
...ANSWER
Answered 2019-Aug-21 at 19:38In your Index.js:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CSInterface
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page