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

Getting the name of the Action that runs this script

$
0
0

If I create a action in photoshop to run a script called "test script", How can I determine within the "test script" what action name started running this script?  I'm trying to write a script to scale my images.  The scaling will be determined by what Action ran this script.

 

 

Example

 

Action Names are 5x7, 4x6, 8x10

Eash action above will run the same script called "scale me"

 

Within "scale me", the java code will determine that 4x6 started running "scale me"

 

"scale me" will go to the section within the java code to scale the image loaded in Photoshop to a 4x6 size.

 

The reason for writing the "scale me" code this way is that I can maintain only one script to scale my images.

 

Any suggestions or help would be appreciated.

 

Raymond


Viewing all articles
Browse latest Browse all 12244

Trending Articles



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