How to update scripts on a computer group network
I want to add a Script action by calling addMenuItem on actions panel.
That gave me the script listener code:
var idAdobeScriptAutomationScripts = stringIDToTypeID( "AdobeScriptAutomation Scripts" );
var desc3 = new ActionDescriptor();
var idjsCt = charIDToTypeID( "jsCt" );
desc3.putPath( idjsCt, new File( "C:\\Program Files (x86)\\Adobe\\Adobe Photoshop CS5\\Presets\\Scripts\\testScript.jsx" ) );
executeAction( idAdobeScriptAutomationScripts, desc3, DialogModes.NO );
My aim is to call this changing the path of the script to (where there aren't any administrator previleges):
"C:\\Users\\user\\AppData\\Roaming\\Adobe\\Adobe Photoshop CS5\\testScript.jsx"
But... It don't let me call it and give me an error.
This is verry important to solve because it will give me access to update all the scripts on all computers on the network at the same time, even if they have no administrator previlegies (PCs).
Another solution is to add one only once, on administrator previleges, a script that would call my user script (updated any time I want and without administrator privilegies).
It could be, for example:
$.evalFile("C:\\Users\\user\\AppData\\Roaming\\Adobe\\Adobe Photoshop CS5\\testScript.jsx");
and if I need arguments to call from it I could use
$.setenv and $.getenv
Is this the only chance I have
There is another way of updating script on a group of computers on a network?
