File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ extendscriptr
1212 . option ( '-s, --script <path>' , 'The input file to compile into an executable extendscript' )
1313 . option ( '-o, --output <path>' , 'The path to the wished compiled output file' )
1414 . option ( '-t, --target [targetApp]' , 'The Adobe Application the script is intended for. i.e. InDesign [targetApp]' )
15+ . option ( '-e, --targetengine [targetEngine]' , 'The target engine. i.e. "session" [targetEngine]' )
1516 . parse ( process . argv ) ;
1617
1718console . log ( 'Running extendscriptr with following options:' ) ;
@@ -37,6 +38,12 @@ if ( adobeTarget &&
3738 browserifyPlugins . push ( [ prependify , '#target ' + extendscriptr . target + '\n' ] ) ;
3839}
3940
41+ var targetEngine = String ( extendscriptr . targetengine ) . toLowerCase ( ) ;
42+ if ( targetEngine &&
43+ ( targetEngine === 'session' ) ) {
44+ browserifyPlugins . push ( [ prependify , '#targetengine "' + extendscriptr . targetengine + '"\n' ] ) ;
45+ }
46+
4047var b = browserify ( {
4148 entries : [ extendscriptr . script ] ,
4249 transform : [ [ 'babelify' , {
You can’t perform that action at this time.
0 commit comments