I have created several scripts that have been recorded on our main mac computer. They work great!
But when we take and copy them to a different computer, they don't work, because our computer names are different. Everything is in the script, except maybe one name times 25 actions are wrong.
We'll I opened the "TestAction" script using TextEdit and I see the words that need to be changed. When I made the changes and saved the file and then tried to load in Photoshop. It say's the file is not compatible with Photoshop.
Anyone know a way to do this. It would be a huge time saving for me.
I have CS3 and CS4 and CS2 if there is anything else needed.
Thanks,
Gary
G
I am in the process of writing a script that will install all the >actions
sets/scripts on different platforms and different versions of >Photoshop
and all the user has to do is run the install script.
Wow, That would be wonderful... We constantly have to redo our actions because of that.
All that changes is the location, so if I could use that script, it would be simple...
Please let me know when you have this done...
Gary
Using Xbytor's Xtools you could use ActionFileToXML.jsx This will change
the selected atn file to XML format so that you could >use a text editor
on the file. Once you have made the changes use >ActionFileFromXML.jsx
to re-create the atn file.
Wow, this sounds great. But i've only run a jsx script in Photoshop, on a picture.
So give me the basics on how to do this? What program to I open and then do I point to the Actions.atn that I created in Photoshop and save to make a file that I can edit.
And then I open that file and save it back to an ATN file?
Just a little more help please, I've not done that before.
Gary
I still would like to know how you do this scripting? Using what and how. I did download the toolbox you suggested...
Thanks,
These are the two main scripts that you will need besides creating one that does the editing/loading.removing action sets.
<http://ps-scripts.cvs.sourceforge.net/viewvc/*checkout*/ps-scripts/xtools/apps/ActionFileToXML.jsx>
<http://ps-scripts.cvs.sourceforge.net/viewvc/*checkout*/ps-scripts/xtools/apps/ActionFileFromXML.jsx>
The first script ActionFileToXML.jsx is run on the action set, this will produce an editable XML file.
Edit this file and replace the path (leaving "/filename") with something you can find/replace with ie REPLACEME
The next thing is to create a script that will read in this xml file (to be run from Photoshop), replace the string with the correct path
In my case it was the preset/scripts folder.
var SCRIPTS_FOLDER = decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
Write out the modified to another xml file.
Modify ActionFileFromXML.jsx to run and process this new xml file and produce the new atn file.
Call this from your script
eval('//@include "'+newPath+'/actionFileFromXML.jsx";\r');
newPath is the location of the running scripts folder.
var newPath = decodeURI(WhoAmI().parent);
function WhoAmI() {
var where;
try {var F = FO;
}catch( err ) {where = File(err.fileName);}
return where;
}
Remove any atn file from Photoshop if it is the action set you want to replace, load the new action set.