Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

how do I get the name of the action that was started from within my javascript?

$
0
0

Hello,

 

I want to create an action called 'test1' and record it playing a script called 'generic.jsx'.

I want the script to know that it was started by 'test1' and thus, do XYZ.

I want to create another action called 'test2' and have it play the same script called 'generic.jsx'.

From within that same script, being a generic one, I want to to now know that it was started by action 'test2' and do ABC.

 

How can I have my javascript know the name of the action that launched it?

 

Thanks in advance!

 

---

Shai


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>