@superdevofficial/fakestk

0.6.1 • Public • Published

Fakestk

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

  • auto detection of CS application name

Version can be specified in target. #target indesign-7.0 and @target InDesign CC-2018 both work. When no version is specified (#target indesign), Fakestk will target the first running version it can find. Make sure your target is running! See versions.json

  • accept stdin
  • from $.write and $.writeln output to stdout
  • currently OSX only

Usage

$ npm install -g fakestk

then

$ fakestk /path/to/script.jsx

or

$ fakestk /path/to/script.jsx -t indesign-13

or

$ less /path/to/script.jsx | fakestk
$ echo "#target indesign-7.0\nalert('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) });

Package Sidebar

Install

npm i @superdevofficial/fakestk

Weekly Downloads

1

Version

0.6.1

License

MIT

Unpacked Size

24.5 kB

Total Files

28

Last publish

Collaborators

  • superdevofficial