Using a database using ExtendScript (for Adobe Illustrator)

I want to reorganize a VB program in ExtendScript to automate some drawing in Adobe Illustrator CS4, but you have a requirement to read from the database. Can I read from a database using ExtendScript? How?

+3
source share
5 answers

Yes, ES can read CSV. just format your database with comma markup.

here is the function that should do the trick:

function readPref (thePath) {
    if (File(thePath).exists == true) {

    var file = File(thePath);
    file.open("r");
    file.encoding= 'BINARY';
    var theText = file.read();
    file.close();
    return String(theText).split(",")

    }
};

should return an array with what you need. VB export the database and just use it to read it. donezo.

+3
source

Illustrator , ...

  • , VB script, Illustrator "" script, , .
  • ScriptUI, cs3 , flash swf Illustrator JS. xml, -, Flash Remoting -. , .
+2

, : -, , ExtendScript http- ( , ).

+2

, ExtendScript "doScript()" VB. ExtendScript . , VB . ExtendScript doScript VB. , , , ExtendScript, Adobe, ..doScript, -, . , , :

  • VB , ExtendScript .
  • VB "ScriptLabel" Adobe Illustrator. ExtendScript . , , .

. , ExtendScript,

+1

VB ExtendScript 100% ( VB, ExtendScript), , :

VB/VBScript, ExtendScript, ExtendScript. , VB, ExtendScript.

ExtendScript VB/VBScript, API- COM Adobe, , ExtendScript plus doJavascript() javascript ( ExtendScript). doJavascript() JSX ExtendScript, javscript. SO:

JSX ExtendScript?

See Windows specific answers. Taking this question and decision further, it can work on other platforms (Mac, Python, Perl, etc.). It does not have to be for VB and Windows, the same approach can be used to interact with ExtendScript externally via COM on Windows or Applescript on Mac, and this will work with any language compatible with COM / Applescript (or pairing).

0
source

Source: https://habr.com/ru/post/1706187/


All Articles