To run a Photoshop script, I currently need to go to File Menu → Scripts → Browse... → Select the .jsx file, which is too cumbersome.
Tried solutions:
Function runJsx
Tried solutions:
- I tried using Ctrl+Shift+K to record the menu command, but it didn’t work.
- Dragging the .jsx file directly into the non-work area of Photoshop works fine, such as the empty space on the right side of the menu bar.
Function runJsx
out
str jsx=
;var doc = app.documents.add(800, 600, 72, "My Document");
;
;app.foregroundColor.rgb.red = 255;
;app.foregroundColor.rgb.green = 0;
;app.foregroundColor.rgb.blue = 0;
;
;doc.selection.select([[0, 0], [800, 0], [800, 600], [0, 600]]);
;doc.selection.fill(app.foregroundColor);
;doc.selection.deselect();
jsx.setfile("$desktop$\ps.jsx")
;drag-and-drop to photoshop window