mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Removed v2 tree
It finally became do-able with go 1.11
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||

|
||||
# runner
|
||||
[](https://godoc.org/github.com/sbrow/runner) [](https://travis-ci.org/sbrow/runner) [](https://coveralls.io/github/sbrow/runner?branch=master) [](https://goreportcard.com/report/github.com/sbrow/ps/runner)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:generate sh -c "godoc2md -template ../.doc.template github.com/sbrow/ps/runner > README.md"
|
||||
//go:generate sh -c "godoc2md -template ../.doc.template github.com/sbrow/ps/v2/runner > README.md"
|
||||
|
||||
// Package runner runs the non-go code that Photoshop understands,
|
||||
// and passes it to back to the go program. Currently, this is
|
||||
@@ -17,6 +17,7 @@ import (
|
||||
|
||||
// Windows is the runner Windows Operating Systems.
|
||||
// It runs Visual Basic Scripts.
|
||||
// // TODO(sbrow): Separate 32 and 64 bit Windows runners.
|
||||
var Windows = Runner{
|
||||
Cmd: "cscript.exe",
|
||||
Args: []string{"/nologo"},
|
||||
|
||||
2
runner/scripts/activeDocFullName.jsx
Normal file
2
runner/scripts/activeDocFullName.jsx
Normal file
@@ -0,0 +1,2 @@
|
||||
#include lib.js
|
||||
var stdout = newFile(arguments[0]);stdout.writeln(app.activeDocument.fullName);stdout.close();
|
||||
@@ -1,4 +1,5 @@
|
||||
#include lib.js
|
||||
alert(app.activeDocument.path)
|
||||
var f = newFile(arguments[0]);
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
f.writeln(arguments[i]);
|
||||
|
||||
Reference in New Issue
Block a user