Additional Plugins Folder

Discussion of Photoshop Scripting, Photoshop Actions and Photoshop Automation in General

Moderators: Tom, Kukurykus

rmawatson

Additional Plugins Folder

Post by rmawatson »

Hello,

Does anyone know if a file exists that I can edit in order to change the path of the additional plugins folder, so that it is reflected in the Preferences Dialog within photoshop next time it starts. I have found a registry kye call "AdditonalPluginsFolder" unde HKEY_CURRENT_USER, and changed this accordingly however it resets to its previous value as soon as I start photoshop.

ANy ideas?

Thanks

Rob.
Mike Hale

Additional Plugins Folder

Post by Mike Hale »

Are you unable to edit it in the preferences dialog directly?
rmawatson

Additional Plugins Folder

Post by rmawatson »

Hi- that is what I am currently doing, but as part of a studio wide rollout I wanted to be able set this preference. It seems that the adobe preferences file in the users profile has the path, although this seems to be some serialized data from the internals of photoshop. I had a look in a hex editor and the path is there, its just not very nice to edit
xbytor

Additional Plugins Folder

Post by xbytor »

Something like this should work.

Code: Select allfunction setFolder(path) {
  function cTID(s) { return app.charIDToTypeID(s); };
  function sTID(s) { return app.stringIDToTypeID(s); };

    var desc2 = new ActionDescriptor();
        var ref2 = new ActionReference();
        ref2.putProperty( cTID('Prpr'), cTID('PlgP') );
        ref2.putEnumerated( cTID('capp'), cTID('Ordn'), cTID('Trgt') );
    desc2.putReference( cTID('null'), ref2 );
        var desc3 = new ActionDescriptor();
        desc3.putPath( cTID('PlgF'), new File( path ) );
        desc3.putBoolean( cTID('AdPl'), true );
    desc2.putObject( cTID('T   '), cTID('PlgP'), desc3 );
    executeAction( cTID('setd'), desc2, DialogModes.NO );
};

// Example: setPluginsFolder("/Volumes/zdrive/work/bin");
// Example: setPluginsFolder("/C/work/bin");


You only need to run it once but you have to restart PS in order for it to take effect.