Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

Pass all arguments into array VBS

$
0
0
0


I want to run jsx script and passing argument into array

Code:

Const psNeverShowDebugger = 1, psDebuggerOnError = 2, psBeforeRunning = 3

Dim appRef
Set appRef = CreateObject("Photoshop.Application")

Dim infosDoc
infosDoc = Wscript.arguments()

Dim JSXFile
JSXFile = Wscript.arguments(0)

appRef.DoJavaScriptFile "C:\Program Files\Adobe\Adobe Photoshop 2020\Presets\Scripts\"+JSXFile+".jsx", Array(infosDoc), psNeverShowDebugger

Im getting the first argument in JSXFile but not getting all arguments in infosDoc so im a bit confuse, if someone can help me!

Thanks you!

Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>