If Named Channel Exists, Run Action 1, Else Create Named Channel via Action 2 and Run Action 1
//I'm new to photoshop scripting with some basic Java knowledge. (i.e., Any and all assistance is //appreciated and I'm in my infancy—take it easy! 🙂
******
Overview:
I have Action 1 that creates a masked vibrancy layer dependent on a named channel existing. That named channel is created by Action 2. In lieu of regular errors cropping up, I would like to "test" for that channel's existence and run the appropriate Action(s).
Either: Run Action 1 because named channel exists
Or: Create named channel via Action 2, then run Action 1 because named channel now exists.
//Said another way, I want to avoid:
- Failed attempts at Action 1 AND
- Creating multiple Named Channels via Action 2
Some Final Thoughts/Questions:
- Actions 1+2 are currently in separate Action Sets. Could be combined if needed but not preferred.
- I understand I'm combining Action Manager code and DOM code. Is that correct?
- I understand that I may be asking for a lot here. Feel free to point me to a more appopriate resource rather than investing heavily in my need.
THANK YOU!
