mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
v2 now in separate folder
This commit is contained in:
13
v2/runner/scripts/dojs.vbs
Normal file
13
v2/runner/scripts/dojs.vbs
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
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" and Not error = "[ActionDescriptor]" and Not error = "undefined" Then
|
||||
Err.raise 1, "dojs.vbs", error
|
||||
end if
|
||||
end if
|
||||
Reference in New Issue
Block a user