Runs a Photoshop action. @param action_set: Name of the group the action is in. @param action: Name of the action.
Source code in src/helpers/actions.py
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | def run_action(action_set: str, action: str) -> None:
"""
Runs a Photoshop action.
@param action_set: Name of the group the action is in.
@param action: Name of the action.
"""
desc310 = ActionDescriptor()
ref7 = ActionReference()
desc310.putBoolean(sID("dontRecord"), False)
desc310.putBoolean(sID("forceNotify"), True)
ref7.putName(sID("action"), action)
ref7.putName(sID("actionSet"), action_set)
desc310.putReference(sID("target"), ref7)
app.ExecuteAction(sID("play"), desc310, NO_DIALOG)
|