reorganized

This commit is contained in:
Unknown
2018-02-04 23:18:47 -05:00
parent 645c6ef3aa
commit 101437ead3
11 changed files with 113 additions and 10 deletions

3
scripts/close.vbs Normal file
View File

@@ -0,0 +1,3 @@
set App = CreateObject("Photoshop.Application")
set Doc = App.activeDocument
Doc.Close

10
scripts/dojs.vbs Normal file
View File

@@ -0,0 +1,10 @@
Dim app
Set app = CreateObject("Photoshop.Application")
if WScript.Arguments.Count = 0 then
WScript.Echo "Missing parameters"
else
path = wScript.Arguments(0)
folder = wScript.Arguments(1)
app.DoJavaScriptFile path, Array(Folder)
end if

9
scripts/open.vbs Normal file
View File

@@ -0,0 +1,9 @@
' Open photoshop.
Set app = CreateObject("Photoshop.Application")
if WScript.Arguments.Count = 0 then
WScript.Echo "Missing parameters"
else
path = wScript.Arguments(0)
Set doc = app.Open(path)
wScript.echo doc.Name
end if

8
scripts/quit.vbs Normal file
View File

@@ -0,0 +1,8 @@
' Close Photoshop
Set appRef = CreateObject("Photoshop.Application")
Do While appRef.Documents.Count > 0
appRef.ActiveDocument.Close(2)
Loop
appRef.Quit()

1
scripts/start.vbs Normal file
View File

@@ -0,0 +1 @@
set app = CreateObject("Photoshop.Application")

11
scripts/test.jsx Normal file
View File

@@ -0,0 +1,11 @@
var Path = arguments[0];
alert(Path)
var saveFile = File(Path + "/test.txt");
if(saveFile.exists)
saveFile.remove();
saveFile.encoding = "UTF8";
saveFile.open("e", "TEXT", "????");
saveFile.writeln("Testing...");
saveFile.close();

1
scripts/test.txt Normal file
View File

@@ -0,0 +1 @@
Testing...

1
scripts/test.vbs Normal file
View File

@@ -0,0 +1 @@
wScript.echo "Testing..."