extendscript

Extendscript Toolkit debugger fails: Can't start debug session

百般思念 提交于 2019-12-03 12:26:09
Not a programming problem per se, but rather a programming environment problem that I have been unable to find a solution to. The problem relates to Adobe's Extendscript Toolkit (both 3.5 and 4), but so far I haven't been able to solve the problem, so here I am... The error I get has appeared more or less over night. I didn't experience this problem yesterday, nor this morning. But exactly WHAT has happened is beyond me. I have removed preferences, I have uninstalled, reinstalled, created a new user, restored old preferences from Time Machine and I'm now pretty much lost for options. Basically

Adobe ExtendScript development - How different than regular JavaScript?

淺唱寂寞╮ 提交于 2019-12-03 10:59:24
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 development of a couple of scripts to add a few key functions to Bridge, mainly for interfacing with a server

Open web page in After Effects with ExtendScript

Deadly 提交于 2019-12-03 10:13:30
This may be a simple one but I can't figure it out. How can I open a web page in the main browser from extendscript as I would do with window.open() in Javascript? I am targeting After Effects and would like it to work on both OS X and Windows. In After Effects you can simply do it using the system object, as Dirk mentioned. However you need several things for that: checking that the script can access the network: if (app.preferences.getPrefAsLong("Main Pref Section", "Pref_SCRIPTING_FILE_NETWORK_SECURITY") != 1) { alert("Please tick the \"Allow Scripts to Write Files and Access Network\"

Which ECMAScript standards comply Adobe's ExtendScript implementation? (if any)

爷,独闯天下 提交于 2019-12-03 07:45:30
I'm a JavaScript developer, who has just begun to dive into Adobe's ExtendScript technology, aiming to improve productivity and workflow on many of my enterprise's daily tasks on Illustrator PDF form generation. In first instance I thought it was an implementation of some ECMAScript standards with addition of a propertary implementation of a Document Object Model, an API for accessing the file system and some other stuff. I was hoping the last version of the Creative Suite ( CS6 ) implemented ECMAScript 5 . My first surprise was not finding any reference on the internet about the

After Effects / ExtendScript: Using libraries and importing .jsx files?

断了今生、忘了曾经 提交于 2019-12-03 07:36:24
问题 I am new to After Effects scripting but have much experience with JavaScript in the browser. How do I import .jsx files? Can I use js libraries such as underscore.js etc? What are some good resources for AE scripting? (Ideally infographics projects) 回答1: To include a .jsx next to your script use: #include "includeme.jsx" EDIT 2: You can also include files using the following syntax: //@include "includeme.jsx" Which (IMHO) is the better way. It wont break a linter and is more javascript-ish.

“Console.log” with Photoshop Scripting - ExtendedScript Toolkit

我与影子孤独终老i 提交于 2019-12-03 04:13:51
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? Daniel Serodio $.writeln() is what you're looking for. See the JavaScript Tools Guide (PDF) for details. 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 more about XTools here: http://ps-scripts.sourceforge.net/xtools.html . It's fabulous! I'm using

After Effects / ExtendScript: Using libraries and importing .jsx files?

匆匆过客 提交于 2019-12-02 21:07:54
I am new to After Effects scripting but have much experience with JavaScript in the browser. How do I import .jsx files? Can I use js libraries such as underscore.js etc? What are some good resources for AE scripting? (Ideally infographics projects) To include a .jsx next to your script use: #include "includeme.jsx" EDIT 2: You can also include files using the following syntax: //@include "includeme.jsx" Which (IMHO) is the better way. It wont break a linter and is more javascript-ish. You can use plain old javascript (ES3 Syntax). If the libraries you include use some browser specific js

Cannot get access token from OAuth Google API for installed applications

你。 提交于 2019-11-29 23:53:02
问题 I'm creating an OAuth authentication flow so users of my installed application can access their private Google spreadsheet documents. I'm coding with Adobe ExtendScript, so I cannot use the Javascript client libraries Google provides. I've read Google's OAuth 2.0 documentation for installed applications quite a few times, but need help with one aspect of the OAuth flow. I am able to get an authorization code by launching a browser from the installed app, and having the user submit their

InDesign CS5 Script: How can I ignore the DTD when importing XML?

ε祈祈猫儿з 提交于 2019-11-29 18:02:25
I am importing XML into InDesign, and I get this message: The external entity 'blahblah.dtd' cannot be found. Continue to import anyway? And when I then continue to import the XML, I get this error message: Javascript Error! Error Number: 103237 Error String: DOM transformation error: Invalid namespace. Engine: session File: C:\blahblah\blahblah.jsx Line: 259 Source: obj.doc.importXML(File(xmlDoc) ); ...the problem is, is that I won't have access to the DTD, and I won't need it for my purposes anyway. So, is there a Extendscript way to ignore the DTD? If not, is there a way to ignore the DTD

InDesign CS5 Script: How can I ignore the DTD when importing XML?

佐手、 提交于 2019-11-28 12:18:51
问题 I am importing XML into InDesign, and I get this message: The external entity 'blahblah.dtd' cannot be found. Continue to import anyway? And when I then continue to import the XML, I get this error message: Javascript Error! Error Number: 103237 Error String: DOM transformation error: Invalid namespace. Engine: session File: C:\blahblah\blahblah.jsx Line: 259 Source: obj.doc.importXML(File(xmlDoc) ); ...the problem is, is that I won't have access to the DTD, and I won't need it for my