What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How to save an Action that runs a Script


dacevedove

New Member
Messages
1
Likes
0
Hello guys! I did an action that in between steps execute a script to set the canvas ratio 1:1 and on another inserts a PSD with a watermark and it works great!

Now I need to share this action with other people on the team but when I save the action it sets the paths to script and the psd with the absolute path on my pc and of course on another pc it doesn't work because it can't find those files.

The question now, how can I set relative directories to the script and the watermark file? This way I can share the .atn, .jsx and .psd on the same folder. is this possible?

photoshop.jpg
 
Put "FirstChoice Image To Square.jsx" into the Scripts folder of Photoshop (restart PS) - record the step where you choose the script again and delete the old entry in you action.
 
Yes this is possible, but it is not easy!
It would be done by using a script to install the atn, script, psd etc.
You need to convert the atn to xml using xtools "ActionToXML.jsx"
The install script will be run from Photoshop and check if it has access to preset/scrips folder if not alert user to run the script as administrator. (Windows only)
The install script will then auto change the path in the action xml file the convert it back to an atn file using xtools "ActionFileFromXML.jsx"
then load the new atn to Photoshop.
xtools can be found HERE
Good luck.
 

Back
Top