programmatically load script

Upload Photoshop Scripts, download Photoshop Scripts, Discussion and Support of Photoshop Scripts

Moderators: Tom, Kukurykus

sublime

programmatically load script

Post by sublime »

Hello,

I have a jsx script which scans the path of an existing images and if a certain criteria is present the script changes the path (like save as) and then saves the image as a jpeg image.

I would like to do two things with this script:
1) bind it to save so that when any image is saved this script runs
- the script only alters the path if the image is a master

2) programmatically load the script into the photoshop application

or

if it is not possible to load the script programmatically then programmatically create a button into photoshop, thus allowing the user to use the button to (safe) save.

Thanks