mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
reorganized
This commit is contained in:
3
scripts/close.vbs
Normal file
3
scripts/close.vbs
Normal file
@@ -0,0 +1,3 @@
|
||||
set App = CreateObject("Photoshop.Application")
|
||||
set Doc = App.activeDocument
|
||||
Doc.Close
|
||||
10
scripts/dojs.vbs
Normal file
10
scripts/dojs.vbs
Normal 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
9
scripts/open.vbs
Normal 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
8
scripts/quit.vbs
Normal 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
1
scripts/start.vbs
Normal file
@@ -0,0 +1 @@
|
||||
set app = CreateObject("Photoshop.Application")
|
||||
11
scripts/test.jsx
Normal file
11
scripts/test.jsx
Normal 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
1
scripts/test.txt
Normal file
@@ -0,0 +1 @@
|
||||
Testing...
|
||||
1
scripts/test.vbs
Normal file
1
scripts/test.vbs
Normal file
@@ -0,0 +1 @@
|
||||
wScript.echo "Testing..."
|
||||
Reference in New Issue
Block a user