extendscript

How to use extendscript to open another application?

时光总嘲笑我的痴心妄想 提交于 2021-02-11 17:11:27
问题 I'm trying to undertand if/how I can open an external program from After Effects by using extendscript to send a command through the cmd line (system.callSystem), but can't work it out... For example, to open a version of Premiere Pro from command line I can use the direct path: cd C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\ && "Adobe Premiere Pro.exe" but can't get paths to be read through extendscript, eg I tried: system.callSystem("cmd.exe /c \"cd C:\Program Files\Adobe\Adobe

How to use extendscript to open another application?

家住魔仙堡 提交于 2021-02-11 17:08:20
问题 I'm trying to undertand if/how I can open an external program from After Effects by using extendscript to send a command through the cmd line (system.callSystem), but can't work it out... For example, to open a version of Premiere Pro from command line I can use the direct path: cd C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\ && "Adobe Premiere Pro.exe" but can't get paths to be read through extendscript, eg I tried: system.callSystem("cmd.exe /c \"cd C:\Program Files\Adobe\Adobe

How to apply transformation to selection in Illustrator by scripting

别来无恙 提交于 2021-02-10 18:40:59
问题 I managed to select every thing I want in Illustrator with a ExtendScript Toolkit javascript code: lots of things (text, path, symbols, ...) in several layers. Now I want to resize them the same way, then move them. I know how to apply a transformation to one object by code, but I want to avoid looping on each element because it would be very very long and transformation would be applied from the anchor point of each element, so my drawings wouldn't be cohesive. So, I am looking for a way to

How to apply transformation to selection in Illustrator by scripting

寵の児 提交于 2021-02-10 18:39:11
问题 I managed to select every thing I want in Illustrator with a ExtendScript Toolkit javascript code: lots of things (text, path, symbols, ...) in several layers. Now I want to resize them the same way, then move them. I know how to apply a transformation to one object by code, but I want to avoid looping on each element because it would be very very long and transformation would be applied from the anchor point of each element, so my drawings wouldn't be cohesive. So, I am looking for a way to

in extendscript - Photoshop, dialog-box persistence?

笑着哭i 提交于 2021-01-29 04:15:09
问题 in extendscript - Photoshop, I would like my dialog-box check boxes to default to previously used choices ... anyone know if this is possible? 回答1: You have two choices. First choice: Using a //@targetengine Values can be made persistent over a session using a targetengine. First script //@targetengine myengine var x = 100; Second script //@targetengine myengine $.writeln(x); If you close Photoshop all of the values will be lost Second choice: Write to a file. I wont write an example here.

[ExtendScript]Change font color, size of certain word in text layer

我怕爱的太早我们不能终老 提交于 2021-01-27 10:55:10
问题 I want replace font color and weight and size of certain word in text layer. For example: I want <b>THIS</b> look different and <b>this</b> as well. My plan was replacing every characters' color between <b> and </b> then "<b>" and "</b>" to be removed. First of all, I'd like to know that changing colors and size of certain words in a text layer would even be feasible. Another thing is, even if I somehow manage to change font color in a text layer and then remove <b> and </b>, font colors

Need to JSON stringify an object in ExtendScript

醉酒当歌 提交于 2021-01-23 06:17:40
问题 I am working on processing meta data information of my Indesign document links, using ExtentdScript. I want to convert the object to string using JSON.stringify but when I use it, I am getting error saying: can't execute script in target engine . If I remove linkObjStr = JSON.stringify(linksInfObj); from below code, then everything works fine. What is the equivalent to JSON.stringify in ExtendScript, or is there any other possibilities to display linksInfObj with its proper contents instead

Need to JSON stringify an object in ExtendScript

徘徊边缘 提交于 2021-01-23 06:17:07
问题 I am working on processing meta data information of my Indesign document links, using ExtentdScript. I want to convert the object to string using JSON.stringify but when I use it, I am getting error saying: can't execute script in target engine . If I remove linkObjStr = JSON.stringify(linksInfObj); from below code, then everything works fine. What is the equivalent to JSON.stringify in ExtendScript, or is there any other possibilities to display linksInfObj with its proper contents instead