Skip to content
forked from nbqx/fakestk

CUI Adobe ExtendScript runner. Accept script file or stdin. currently osx only"

Notifications You must be signed in to change notification settings

dkotvan/fakestk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) });

About

CUI Adobe ExtendScript runner. Accept script file or stdin. currently osx only"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.8%
  • AppleScript 1.2%