File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ extendscriptr
12
12
. option ( '-s, --script <path>' , 'The input file to compile into an executable extendscript' )
13
13
. option ( '-o, --output <path>' , 'The path to the wished compiled output file' )
14
14
. 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]' )
15
16
. parse ( process . argv ) ;
16
17
17
18
console . log ( 'Running extendscriptr with following options:' ) ;
@@ -37,6 +38,12 @@ if ( adobeTarget &&
37
38
browserifyPlugins . push ( [ prependify , '#target ' + extendscriptr . target + '\n' ] ) ;
38
39
}
39
40
41
+ var targetEngine = String ( extendscriptr . targetengine ) . toLowerCase ( ) ;
42
+ if ( targetEngine &&
43
+ ( targetEngine === 'session' ) ) {
44
+ browserifyPlugins . push ( [ prependify , '#targetengine "' + extendscriptr . targetengine + '"\n' ] ) ;
45
+ }
46
+
40
47
var b = browserify ( {
41
48
entries : [ extendscriptr . script ] ,
42
49
transform : [ [ 'babelify' , {
You can’t perform that action at this time.
0 commit comments