extendscript

Adobe ExtendScript development - How different than regular JavaScript?

こ雲淡風輕ζ 提交于 2019-12-21 03:38:42
问题 Question I'm wondering how different ExtendScript is from JavaScript? Could I theoretically hire a web developer who has JavaScript savvy to develop it without demanding an excessive amount of learning on their part? Overview I'm working on a media database (or a so-called "multimedia library") project and it is based on XMP (the eXtensible Metadata Platform). The logical tool for administering the metadata and keywording seems to be Adobe Bridge, however I need to contract out the

“Console.log” with Photoshop Scripting - ExtendedScript Toolkit

最后都变了- 提交于 2019-12-20 15:59:32
问题 I'm doing a bit of Photoshop scripting for the first time and it sure would be great to have a console.log-like function to output array and object values in the Javascript console of the ExtendScript Toolkit App. Is there an equivalent function? 回答1: $.writeln() is what you're looking for. See the JavaScript Tools Guide (PDF) for details. 回答2: write("any message"); Is what works in XTools for Photoshop. I find that the Photoshop debugger crashes all the time in CS6 on Mac OSX. You can find

“Console.log” with Photoshop Scripting - ExtendedScript Toolkit

前提是你 提交于 2019-12-20 15:59:14
问题 I'm doing a bit of Photoshop scripting for the first time and it sure would be great to have a console.log-like function to output array and object values in the Javascript console of the ExtendScript Toolkit App. Is there an equivalent function? 回答1: $.writeln() is what you're looking for. See the JavaScript Tools Guide (PDF) for details. 回答2: write("any message"); Is what works in XTools for Photoshop. I find that the Photoshop debugger crashes all the time in CS6 on Mac OSX. You can find

Is it possible to execute JSX scripts from outside ExtendScript?

纵饮孤独 提交于 2019-12-17 07:05:41
问题 Typically when you're writing a .jsx script to automate an Adobe product (like InDesign, Illustrator or Photoshop), you write, debug and execute the script from the ExtendScript IDE. Is it possible to bypass ExtendScript and run the script from a third program? I think Adobe products have a built-in JavaScript interpreter which ExtendScript can connect to to access the Adobe object models and automate their software. I'd like to be able to connect directly to that interpreter and run jsx

need to generate UUID for windows system in ExtendScript

我的未来我决定 提交于 2019-12-13 18:22:58
问题 I have used the below code to generate DocumentID and InstanceID for the links of .indd files. This works fine on MacOS. Can anyone suggest similar UUID generation code on Windows system. Is there any such library available on windows system? function generateUUID() { var cmd = 'do shell script "uuidgen | tr -d " & quoted form of "-"'; return app.doScript(cmd, ScriptLanguage.applescriptLanguage); } var genDocID = 'xmp.did:' + generateUUID(); 回答1: TLDR; Below are a couple of different ways to

InDesign: Accessing document dictionary

不羁的心 提交于 2019-12-13 05:25:58
问题 In my script, I am copying a table of cells that have a lot of text in them. This text has a bunch of custom hyphenation rules that are saved in the document dictionary, NOT in the user dictionary. This is accessed in the UI by opening User dictionary and selecting the document under Target . When copying the table to another document, these rules are unfortunately not copied with it, and the text is changed. How can I access this custom document dictionary so that my hyphenations are

Selecting textFrames inside of a group in InDesign CS6

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 04:24:22
问题 Similar to my earlier problems with finding a textFrame on a page based on its geometricBounds or by part of its name, I now am running into the problem of finding textFrames if they are inside groups. If I use an array of all textFrames, such as: var textFramesArray = document.textFrames.everyItem().getElements(); it will not find any textFrames that are inside of a group. How can I figure out how to reference a textFrame if it's inside a group? Even if the group has to be un-grouped, that's

Pass variable from JavaScript to Windows batch file

我的梦境 提交于 2019-12-13 03:45:37
问题 Is it possible to create a variable in JavaScript and pass it to a batch file? Just as a simple test echo a variable and move a file up a directory. JavaScript.js var s = "Gwen Stefani"; var myFile = "C:\\temp\\myfile.txt" myBat.execute(); myBat.bat echo s move myFile .. An alternative is to create a string which is saved out as a batch file and then executed, but I was wondering if if it could be done directly. 回答1: You can use command line arguments (as you are using exec I suppose this is

Is there a way to change font color of a specific word in a string, in extendscript for after effects?

天涯浪子 提交于 2019-12-13 03:12:15
问题 I can change the font color of the entire text layer successfully, but I cannot find a way to change the color of a specific word in a string. For e.g. In this string "Trying to learn extendscript for after effects", I want to change the color of "learn" only. var mySourceText = currItem.layers.byName('line04').property("ADBE Text Properties").property("ADBE Text Document"); var myTextDoc = mySourceText.value; myTextDoc.fillColor = [0.5,0.5,0]; mySourceText.setValue(myTextDoc); But this would

How to set pageItem properties in Basil.js?

江枫思渺然 提交于 2019-12-12 10:17:07
问题 This is a follow up on this question. How do I set pageItem properties like shearAngle in Basil.js? In ExtendScript it is: myPageItem.properties = { shearAngle:20 }; or myPageItem.shearAngle = 20; What would be the Basil.js-ish equivalent? What about nested properties like some preferences? app.activeDocument.properties = { documentPreferences:{ pageWidth:100, pageHeight:100 } }; 来源: https://stackoverflow.com/questions/36723099/how-to-set-pageitem-properties-in-basil-js