File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-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:' ) ;
@@ -38,6 +39,14 @@ if( adobeTarget &&
38
39
browserifyPlugins . push ( [ prependify , '#target ' + extendscriptr . target + '\n' ] ) ;
39
40
} ;
40
41
42
+ var targetEngine = String ( extendscriptr . targetengine ) . replace ( new RegExp ( '^[^a-zA-Z_$]|[^0-9a-zA-Z_$]' , 'g' ) , '_' ) ;
43
+
44
+ if ( targetEngine !== 'undefined' ) {
45
+ if ( targetEngine . length > 0 ) {
46
+ browserifyPlugins . push ( [ prependify , '#targetengine "' + targetEngine + '"\n' ] ) ;
47
+ }
48
+ }
49
+
41
50
var b = browserify ( {
42
51
entries : [ extendscriptr . script ] ,
43
52
transform : [ [ require . resolve ( 'babelify' ) , {
You can’t perform that action at this time.
0 commit comments