Skip to content
CUI Adobe ExtendScript runner. Accept script file or stdin. currently osx only"
JavaScript AppleScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
resources
test
.gitignore
README.md
cmd.js
index.js
package.json

README.md

Fakestk

Fakestk(Fake ESTK) Adobe ExtendScript(JSX) simple command runner.

  • auto detection CS application name and version
  • accept stdin
  • from $.write and $.writeln output to stdout
  • currently OSX only

Usage

$ npm install -g fakestk

then

$ fakestk /path/to/script.jsx

or

$ less /path/to/script.jsx | fakestk
$ echo "#target indesign-7.0;alert('hello!');" | fakestk

or with jsx-manifest

$ npm install -g jsx-manifest
$ jsx_manifest -b binding.json manifest.js | fakestk

or

$ npm install fakestk

then

var fakestk = require('fakestk');

// script => filepath or script-content

// with callback
fakestk.run(script,function(err,result){
  if(err) return console.log(err.toString());
  if(result!==""){
    console.log(result);
  }
});

// without callback
var exec = fakestk.run(script);
exec.on('error',function(err){ console.log(err) });
exec.on('data', function(data){ console.log(data) });
Something went wrong with that request. Please try again.