Skip to main content
tssee
Inspiring
April 15, 2017
Answered

Install Action

  • April 15, 2017
  • 3 replies
  • 2069 views

I created a script that installs Action

if stock exists must leave everything unchanged

otherwise you must install it.

This topic has been closed for replies.
JJMack
Community Expert
Community Expert
April 17, 2017

tssee@imgof.com  wrote

I created a script that installs Action

if stock exists must leave everything unchanged

otherwise you must install it.

Please post the script you created so we get some idea of what you have coded.

JJMack
JJMack
Community Expert
Community Expert
April 15, 2017

As I wrote if the script is just for your use you can most likely script something that will work for you.  You  can not change the way Photoshop work or how others use Photoshop. Photoshop Actions Palette allows  duplicate actions set names  to be loaded.  Users can Add, Delete and edit Actions in Action sets.  I do not believe a script can examine a action see its steps to make sure it the correct action with the correct steps and and has not been modified.

Personally I do not know why you would want to script something like that for your own use for after all you control you Photoshop environment  and install your add-ons in the first place.  You should know what in the Actions palette.

JJMack
JJMack
Community Expert
Community Expert
April 15, 2017

explain what you mean when you write "if stock exists"...

JJMack
tssee
tsseeAuthor
Inspiring
April 15, 2017

I created a script that installs Action

if Action exists must leave everything unchanged

otherwise you must install it.

JJMack
Community Expert
Community Expert
April 15, 2017

Action are loaded via *.ATN file action set. So the can contain one or more actions.   Also different action sets can contain action with the same names as other action sets have.  These could be the same of different action.  You cal load an action set with the same name as a loaded action set. The set could contain the same actions, different actions od different version of some actions.

I think you would need to deal with the from an Action Set standpoint.  Have some way to determine it the set loaded is the current version. 

Also users can edit Actions add action to an action set and delete actions in an loaded action set.  If an action does not exist on a machine for some user and you load a set there may now be multiple sets loaded with that name. If you delete the set first you may delete actions the users has added.  The user may have deleted the missing action for the did not want to use it use it their work-flow.  If you are trying to write the script for a community of users you may not be able to develop the perfect script.  If it is just for your own use you control your work-flow.

JJMack