extendscript

Writing binary file using in Extendscript. Incorrect file size

一个人想着一个人 提交于 2020-08-05 10:06:06
问题 Further to my question here I'm writing a list of hex colours to a binary file from within Photoshop using Extendscript. So far so good. Only the binary file written with the code below is 119 bytes. When cut and pasted and saved using Sublime Text 3 it's only 48 bytes, which then causes complications later on. This is my first time in binary land, so I may be a little lost. I suspect it's an either an encoding issue (which could explain the 2.5 file size), or doing something very wrong

How to execute an InDesign extendscript from command line?

北慕城南 提交于 2020-07-18 07:38:10
问题 I need to execute a .jsx script for InDesign from command line (Windows). For Illustrator, it works easily with the following command: "C:\Program Files\Adobe\Adobe Illustrator CS6 (64 Bit)\Support Files\Contents\Windows\Illustrator.exe" "...\myscript.jsx" Both applications Illustrator and ExtendScript Toolkit CS6 open then the script is automatically launched. When I try the same for InDesign, it doesn't work (InDesign says 'Unable to open myscript.jsx ...'). I also tried to launch

Photoshop ScriptUI: Show a dialog window, close it, show it again gives an empty full size window

人走茶凉 提交于 2020-06-29 12:27:33
问题 In my script for Photoshop CC 2015 (Windows 10), written in JavaScript, I am processing all layers of the active document in a loop and want to show a setup dialog in each step. For simplification, take the following working example. The window is defined outside the loop, and among other steps which are stripped here, the window is shown once every step in the loop: #target photoshop var w = new Window('dialog', 'Title'); var b = w.add('button', undefined, 'OK'); for (var i = 0; i < 3; i++)

How to simulate a key-press in ExtendScript?

笑着哭i 提交于 2020-05-13 14:45:06
问题 currently I want to write a script for AE, which relieves me of some keyboard inputs. Once the script is running, I want to click with the mouse, and then some key-inputs for example X Y and Z should be simulated. The little GUI and the eventhandler are no problems, but the simulation of key pressing. Please help. var win = new Window ("dialog", "Dummy"); win.aButton = win.add ("button", undefined, "Start"); win.bButton = win.add ("button", undefined, "Stop"); //Start win.aButton.onClick =

Is Adobe Media Encoder scriptable with ExtendScript?

安稳与你 提交于 2020-05-10 09:59:52
问题 Is Adobe Media Encoder (AME) Scriptable? I've heard people mention it was "officially scriptable" but I can't find any reference to its scriptable object set. Has anyone had any experience scripting AME? 回答1: Adobe media encoder is 'officially' not scriptable but we can use extend script API for scripting AME. Below functions are available through extend script 1.Adding a file to batch Encode progress host = App.GetEncoderHost (); enc = EHost.CreateEncoderForFormat ( "QuickTime"); flag = Enc

Is Adobe Media Encoder scriptable with ExtendScript?

ぃ、小莉子 提交于 2020-05-10 09:56:25
问题 Is Adobe Media Encoder (AME) Scriptable? I've heard people mention it was "officially scriptable" but I can't find any reference to its scriptable object set. Has anyone had any experience scripting AME? 回答1: Adobe media encoder is 'officially' not scriptable but we can use extend script API for scripting AME. Below functions are available through extend script 1.Adding a file to batch Encode progress host = App.GetEncoderHost (); enc = EHost.CreateEncoderForFormat ( "QuickTime"); flag = Enc

How to group XML elements in in-design by adding them to a parent tag

ぃ、小莉子 提交于 2020-03-04 05:53:09
问题 I have XML elements linked to the root element of the document and there are some elements that should be grouped and then linked to the design document, So I would like to know how I can create a virtual group and add the elements to a parent tag that will, in turn, be the child of the parent in InDesign scripting Existing : -EL1 -EL2 -EL3 -EL4 -EL5 Expected: -EL1 -EL --EL2 --EL3 --EL4 -EL5 Where EL is the parent and EL2,EL3,EL4 are the child elements. 回答1: Setup a demo .indd To provide some

Illustrator ExtendScript set FILL opacity of selection

白昼怎懂夜的黑 提交于 2020-01-24 10:23:05
问题 Is there any way to access a pathItem's fill opacity with javascript? I can access the overall opacity, but I want to lower the opacity of the fill while keeping the stroke fully opaque. I can't find anything in the documentation, nor can I find anyone else asking this question. I can set the overall opacity like so: var selection = app.activeDocument.selection; selection[0].opacity = 50; I've tried every variant of " fillOpacity " that I can think of, like this: var selection = app