Document now accessible through go

This commit is contained in:
Unknown
2018-03-19 15:32:46 -04:00
parent 7725110e35
commit 0202d5c188
6 changed files with 186 additions and 143 deletions

2
ps.go
View File

@@ -181,7 +181,9 @@ func ApplyDataset(name string) ([]byte, error) {
// JSLayer retrurns javascript code to get the layer with a given path.
func JSLayer(path string) string {
path = strings.TrimLeft(path, "/")
pth := strings.Split(path, "/")
// fmt.Println(path)
js := "app.activeDocument"
last := len(pth) - 1
if last > 0 {