mirror of
https://github.com/sbrow/ps.git
synced 2025-12-29 18:47:38 -05:00
Document now accessible through go
This commit is contained in:
2
ps.go
2
ps.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user