Files
ps/scripts/dojs.vbs
Unknown 4bf7eca6b0 Minor Improvements
* Made Refresh() more robust - when an error is encountered, the layer(set) is reloaded automatically.
* JS errors are now output to console instead of alerts.
2018-04-04 15:14:59 -04:00

13 lines
332 B
Plaintext

Dim appRef
Set appRef = CreateObject("Photoshop.Application")
if wScript.Arguments.Count = 0 then
wScript.Echo "Missing parameters"
else
path = wScript.Arguments(0)
args = wScript.Arguments(1)
error = appRef.DoJavaScriptFile(path, Split(args, ","))
if Not error = "true" Then
Err.raise 1, "dojs.vbs", error
end if
end if