Skip to main content
Stephen Marsh
Community Expert
Community Expert
November 27, 2022
Question

Photoshop Action Helper Scripts

  • November 27, 2022
  • 12 replies
  • 4116 views
Originally posted on my blog:
 
 
For many Photoshop users, Actions are a relatively easy and accessible form of automation. Although easy to create, Actions have numerous limitations. 
 
Scripts can extend Actions, making up for their limitations. Users who are comfortable with Actions can use a "snippet" of script code in their Action to achieve a result that would otherwise be impossible. 
 
The goal is to enable Photoshop users comfortable with Actions to leverage the power of scripting – without requiring the knowledge to write scripts themselves.
 
I intend to create and maintain a repository of code snippets designed to perform a specific Action step that is not otherwise achievable. The average Photoshop user doesn't need to know how to write script code – they only need to run the script while recording it as an Action step.
 
As an end user, do you need help or have a feature request for a step that is not possible using an action step? Post a reply with your idea/request.
 
As a script developer, would you like to share code or help contribute snippets? I encourage like-minded script creators to share their code snippets, which I'll add into the repo. Although script length doesn't matter, the intent is to keep the scripting code as short and concise as possible. Apart from the "header" of the script, there isn't any need to comment the scripts, except where minimal end-user editing is required within the script itself.
 
Errors, omissions, bugs or other issues? Please let me know.
 
The coding platform Snippet.io is being used to host the code, as it offers the ability to group code into "collections" that are easy to find, use and maintain. 
 
 
Photoshop Action Helper Scripts – Paths
 
Photoshop Action Helper Scripts – Channels
 
Photoshop Action Helper Scripts – Layers
 
Photoshop Action Helper Scripts – Conditionals
 
Photoshop Action Helper Scripts – Rulers
 
Photoshop Action Helper Scripts – Tools
 
Photoshop Action Helper Scripts – Artboards
https://snipit.io/public/collections/22836/22836
 
Photoshop Action Helper Scripts – Metadata
 
Photoshop Action Helper Scripts – Selection
https://snipit.io/public/collections/22989/22989
 
Photoshop Action Helper Scripts – Guides
Photoshop Action Helper Scripts – Camera Raw Filter
 
Photoshop Action Helper Scripts – Open Files
https://snipit.io/public/collections/23114/23114
 
 
Information on saving script code and installing/running scripts here:
 
This topic has been closed for replies.

12 replies

Stephen Marsh
Community Expert
Community Expert
December 8, 2022

I have added a new collection for selecting tools:

 

https://snipit.io/public/collections/22819/22819/

 

Known Participant
November 12, 2024

Thanks so much for these handy scripts! I've just hit an issue with this one and wonder if anyone can help?

I've successfully used this script to select the Ellipse tool, but doing the same for the Zoom tool fails for me 100% of the time with the following popup message:

-----
Error 4: Unterminated string constant.
Line: 78

-> selectTool('zoomTool');

-----

The only changes I've made to the script thus far are to:

* Add the // before selectTool('moveTool'); in line 9

* Remove the // before selectTool('zoomTool’); in line 78

Thanks in advance to anyone who can help me!

Stephen Marsh
Community Expert
Community Expert
November 12, 2024

I haven’t tested, however, looking at the code, it appears that the closing single quote mark isn't straight – it’s curly. (It must have been mangled when originally pasted). The clue was in the error code.

 

umarz28514856
Participant
November 27, 2022

I don't know but for some reason the "load action" button is grayed out in my Photoshop can anybody please help me